From 8a3b2bae14765c8febcfe2ddd9f332d0747483e0 Mon Sep 17 00:00:00 2001 From: mbohlool Date: Sun, 21 May 2017 22:43:45 -0700 Subject: [PATCH] Update generated client for TPR fix --- .../client/apis/third_party_resources_api.py | 10 ++--- kubernetes/docs/ThirdPartyResourcesApi.md | 35 ++++++++++++--- scripts/swagger.json | 45 +++++-------------- 3 files changed, 45 insertions(+), 45 deletions(-) diff --git a/kubernetes/client/apis/third_party_resources_api.py b/kubernetes/client/apis/third_party_resources_api.py index 5fe5b88cd..982daeda9 100644 --- a/kubernetes/client/apis/third_party_resources_api.py +++ b/kubernetes/client/apis/third_party_resources_api.py @@ -143,7 +143,7 @@ class ThirdPartyResourcesApi(object): if 'body' in params: body_params = params['body'] # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api(resource_path, 'POST', path_params, @@ -254,7 +254,7 @@ class ThirdPartyResourcesApi(object): if 'body' in params: body_params = params['body'] # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api(resource_path, 'DELETE', path_params, @@ -374,7 +374,7 @@ class ThirdPartyResourcesApi(object): body_params = None # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api(resource_path, 'GET', path_params, @@ -484,7 +484,7 @@ class ThirdPartyResourcesApi(object): body_params = None # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api(resource_path, 'GET', path_params, @@ -604,7 +604,7 @@ class ThirdPartyResourcesApi(object): if 'body' in params: body_params = params['body'] # Authentication setting - auth_settings = [] + auth_settings = ['BearerToken'] return self.api_client.call_api(resource_path, 'PUT', path_params, diff --git a/kubernetes/docs/ThirdPartyResourcesApi.md b/kubernetes/docs/ThirdPartyResourcesApi.md index e5cca4ad4..f6c235337 100644 --- a/kubernetes/docs/ThirdPartyResourcesApi.md +++ b/kubernetes/docs/ThirdPartyResourcesApi.md @@ -26,6 +26,11 @@ import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubernetes.client.ThirdPartyResourcesApi() namespace = 'namespace_example' # str | The Resource's namespace @@ -56,7 +61,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -80,6 +85,11 @@ import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubernetes.client.ThirdPartyResourcesApi() body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | @@ -110,7 +120,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -134,6 +144,11 @@ import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubernetes.client.ThirdPartyResourcesApi() namespace = 'namespace_example' # str | The Resource's namespace @@ -164,7 +179,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -188,6 +203,11 @@ import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubernetes.client.ThirdPartyResourcesApi() fqdn = 'fqdn_example' # str | The Third party Resource fqdn @@ -216,7 +236,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers @@ -240,6 +260,11 @@ import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class api_instance = kubernetes.client.ThirdPartyResourcesApi() namespace = 'namespace_example' # str | The Resource's namespace @@ -270,7 +295,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[BearerToken](../README.md#BearerToken) ### HTTP request headers diff --git a/scripts/swagger.json b/scripts/swagger.json index 58bddf7a8..f8f7e77cb 100644 --- a/scripts/swagger.json +++ b/scripts/swagger.json @@ -33326,7 +33326,6 @@ } } }, - "description": "Returns a list of Resources", "parameters": [ { "uniqueItems": true, @@ -33354,12 +33353,8 @@ "third_party_resources" ], "summary": "Gets Resources", - "security": [ - { - "Bearer": [] - } - ], - "operationId": "listThirdPartyResource" + "operationId": "listThirdPartyResource", + "description": "Returns a list of Resources" } }, "/apis/{fqdn}/v1/namespaces/{namespace}/{resource}/{name}": { @@ -33372,7 +33367,6 @@ } } }, - "description": "Update the specified third party resource of the type specified", "parameters": [ { "description": "The Resource's namespace", @@ -33409,12 +33403,8 @@ "third_party_resources" ], "summary": "Update a Resource", - "security": [ - { - "Bearer": [] - } - ], - "operationId": "updateThirdPartyResource" + "operationId": "updateThirdPartyResource", + "description": "Update the specified third party resource of the type specified" }, "delete": { "responses": { @@ -33425,7 +33415,6 @@ } } }, - "description": "Deletes the specified Resource in the specified namespace", "parameters": [ { "schema": { @@ -33461,12 +33450,8 @@ "third_party_resources" ], "summary": "Deletes a specific Resource", - "security": [ - { - "Bearer": [] - } - ], - "operationId": "deleteThirdPartyResource" + "operationId": "deleteThirdPartyResource", + "description": "Deletes the specified Resource in the specified namespace" }, "get": { "responses": { @@ -33477,7 +33462,6 @@ } } }, - "description": "Returns a specific Resource in a namespace", "parameters": [ { "description": "The Resource's namespace", @@ -33512,12 +33496,8 @@ "third_party_resources" ], "summary": "Gets a specific Resource", - "security": [ - { - "Bearer": [] - } - ], - "operationId": "getThirdPartyResource" + "operationId": "getThirdPartyResource", + "description": "Returns a specific Resource in a namespace" } }, "/apis/{fqdn}/v1/namespaces/{namespace}/{resource}": { @@ -33530,7 +33510,6 @@ } } }, - "description": "Creates a third party resource of the type specified", "parameters": [ { "description": "The Resource's namespace", @@ -33567,12 +33546,8 @@ "third_party_resources" ], "summary": "Create a Resource", - "security": [ - { - "Bearer": [] - } - ], - "operationId": "createThirdPartyResource" + "operationId": "createThirdPartyResource", + "description": "Creates a third party resource of the type specified" } } },