Skip to content

Commit 8a3b2ba

Browse files
committed
Update generated client for TPR fix
1 parent 19ce362 commit 8a3b2ba

File tree

3 files changed

+45
-45
lines changed

3 files changed

+45
-45
lines changed

kubernetes/client/apis/third_party_resources_api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def create_third_party_resource_with_http_info(self, namespace, fqdn, resource,
143143
if 'body' in params:
144144
body_params = params['body']
145145
# Authentication setting
146-
auth_settings = []
146+
auth_settings = ['BearerToken']
147147

148148
return self.api_client.call_api(resource_path, 'POST',
149149
path_params,
@@ -254,7 +254,7 @@ def delete_third_party_resource_with_http_info(self, body, **kwargs):
254254
if 'body' in params:
255255
body_params = params['body']
256256
# Authentication setting
257-
auth_settings = []
257+
auth_settings = ['BearerToken']
258258

259259
return self.api_client.call_api(resource_path, 'DELETE',
260260
path_params,
@@ -374,7 +374,7 @@ def get_third_party_resource_with_http_info(self, namespace, name, fqdn, resourc
374374

375375
body_params = None
376376
# Authentication setting
377-
auth_settings = []
377+
auth_settings = ['BearerToken']
378378

379379
return self.api_client.call_api(resource_path, 'GET',
380380
path_params,
@@ -484,7 +484,7 @@ def list_third_party_resource_with_http_info(self, fqdn, resource, **kwargs):
484484

485485
body_params = None
486486
# Authentication setting
487-
auth_settings = []
487+
auth_settings = ['BearerToken']
488488

489489
return self.api_client.call_api(resource_path, 'GET',
490490
path_params,
@@ -604,7 +604,7 @@ def update_third_party_resource_with_http_info(self, namespace, fqdn, resource,
604604
if 'body' in params:
605605
body_params = params['body']
606606
# Authentication setting
607-
auth_settings = []
607+
auth_settings = ['BearerToken']
608608

609609
return self.api_client.call_api(resource_path, 'PUT',
610610
path_params,

kubernetes/docs/ThirdPartyResourcesApi.md

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ import kubernetes.client
2626
from kubernetes.client.rest import ApiException
2727
from pprint import pprint
2828

29+
# Configure API key authorization: BearerToken
30+
kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY'
31+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
32+
# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer'
33+
2934
# create an instance of the API class
3035
api_instance = kubernetes.client.ThirdPartyResourcesApi()
3136
namespace = 'namespace_example' # str | The Resource's namespace
@@ -56,7 +61,7 @@ Name | Type | Description | Notes
5661

5762
### Authorization
5863

59-
No authorization required
64+
[BearerToken](../README.md#BearerToken)
6065

6166
### HTTP request headers
6267

@@ -80,6 +85,11 @@ import kubernetes.client
8085
from kubernetes.client.rest import ApiException
8186
from pprint import pprint
8287

88+
# Configure API key authorization: BearerToken
89+
kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY'
90+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
91+
# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer'
92+
8393
# create an instance of the API class
8494
api_instance = kubernetes.client.ThirdPartyResourcesApi()
8595
body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions |
@@ -110,7 +120,7 @@ Name | Type | Description | Notes
110120

111121
### Authorization
112122

113-
No authorization required
123+
[BearerToken](../README.md#BearerToken)
114124

115125
### HTTP request headers
116126

@@ -134,6 +144,11 @@ import kubernetes.client
134144
from kubernetes.client.rest import ApiException
135145
from pprint import pprint
136146

147+
# Configure API key authorization: BearerToken
148+
kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY'
149+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
150+
# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer'
151+
137152
# create an instance of the API class
138153
api_instance = kubernetes.client.ThirdPartyResourcesApi()
139154
namespace = 'namespace_example' # str | The Resource's namespace
@@ -164,7 +179,7 @@ Name | Type | Description | Notes
164179

165180
### Authorization
166181

167-
No authorization required
182+
[BearerToken](../README.md#BearerToken)
168183

169184
### HTTP request headers
170185

@@ -188,6 +203,11 @@ import kubernetes.client
188203
from kubernetes.client.rest import ApiException
189204
from pprint import pprint
190205

206+
# Configure API key authorization: BearerToken
207+
kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY'
208+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
209+
# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer'
210+
191211
# create an instance of the API class
192212
api_instance = kubernetes.client.ThirdPartyResourcesApi()
193213
fqdn = 'fqdn_example' # str | The Third party Resource fqdn
@@ -216,7 +236,7 @@ Name | Type | Description | Notes
216236

217237
### Authorization
218238

219-
No authorization required
239+
[BearerToken](../README.md#BearerToken)
220240

221241
### HTTP request headers
222242

@@ -240,6 +260,11 @@ import kubernetes.client
240260
from kubernetes.client.rest import ApiException
241261
from pprint import pprint
242262

263+
# Configure API key authorization: BearerToken
264+
kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY'
265+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
266+
# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer'
267+
243268
# create an instance of the API class
244269
api_instance = kubernetes.client.ThirdPartyResourcesApi()
245270
namespace = 'namespace_example' # str | The Resource's namespace
@@ -270,7 +295,7 @@ Name | Type | Description | Notes
270295

271296
### Authorization
272297

273-
No authorization required
298+
[BearerToken](../README.md#BearerToken)
274299

275300
### HTTP request headers
276301

scripts/swagger.json

Lines changed: 10 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -33326,7 +33326,6 @@
3332633326
}
3332733327
}
3332833328
},
33329-
"description": "Returns a list of Resources",
3333033329
"parameters": [
3333133330
{
3333233331
"uniqueItems": true,
@@ -33354,12 +33353,8 @@
3335433353
"third_party_resources"
3335533354
],
3335633355
"summary": "Gets Resources",
33357-
"security": [
33358-
{
33359-
"Bearer": []
33360-
}
33361-
],
33362-
"operationId": "listThirdPartyResource"
33356+
"operationId": "listThirdPartyResource",
33357+
"description": "Returns a list of Resources"
3336333358
}
3336433359
},
3336533360
"/apis/{fqdn}/v1/namespaces/{namespace}/{resource}/{name}": {
@@ -33372,7 +33367,6 @@
3337233367
}
3337333368
}
3337433369
},
33375-
"description": "Update the specified third party resource of the type specified",
3337633370
"parameters": [
3337733371
{
3337833372
"description": "The Resource's namespace",
@@ -33409,12 +33403,8 @@
3340933403
"third_party_resources"
3341033404
],
3341133405
"summary": "Update a Resource",
33412-
"security": [
33413-
{
33414-
"Bearer": []
33415-
}
33416-
],
33417-
"operationId": "updateThirdPartyResource"
33406+
"operationId": "updateThirdPartyResource",
33407+
"description": "Update the specified third party resource of the type specified"
3341833408
},
3341933409
"delete": {
3342033410
"responses": {
@@ -33425,7 +33415,6 @@
3342533415
}
3342633416
}
3342733417
},
33428-
"description": "Deletes the specified Resource in the specified namespace",
3342933418
"parameters": [
3343033419
{
3343133420
"schema": {
@@ -33461,12 +33450,8 @@
3346133450
"third_party_resources"
3346233451
],
3346333452
"summary": "Deletes a specific Resource",
33464-
"security": [
33465-
{
33466-
"Bearer": []
33467-
}
33468-
],
33469-
"operationId": "deleteThirdPartyResource"
33453+
"operationId": "deleteThirdPartyResource",
33454+
"description": "Deletes the specified Resource in the specified namespace"
3347033455
},
3347133456
"get": {
3347233457
"responses": {
@@ -33477,7 +33462,6 @@
3347733462
}
3347833463
}
3347933464
},
33480-
"description": "Returns a specific Resource in a namespace",
3348133465
"parameters": [
3348233466
{
3348333467
"description": "The Resource's namespace",
@@ -33512,12 +33496,8 @@
3351233496
"third_party_resources"
3351333497
],
3351433498
"summary": "Gets a specific Resource",
33515-
"security": [
33516-
{
33517-
"Bearer": []
33518-
}
33519-
],
33520-
"operationId": "getThirdPartyResource"
33499+
"operationId": "getThirdPartyResource",
33500+
"description": "Returns a specific Resource in a namespace"
3352133501
}
3352233502
},
3352333503
"/apis/{fqdn}/v1/namespaces/{namespace}/{resource}": {
@@ -33530,7 +33510,6 @@
3353033510
}
3353133511
}
3353233512
},
33533-
"description": "Creates a third party resource of the type specified",
3353433513
"parameters": [
3353533514
{
3353633515
"description": "The Resource's namespace",
@@ -33567,12 +33546,8 @@
3356733546
"third_party_resources"
3356833547
],
3356933548
"summary": "Create a Resource",
33570-
"security": [
33571-
{
33572-
"Bearer": []
33573-
}
33574-
],
33575-
"operationId": "createThirdPartyResource"
33549+
"operationId": "createThirdPartyResource",
33550+
"description": "Creates a third party resource of the type specified"
3357633551
}
3357733552
}
3357833553
},

0 commit comments

Comments
 (0)