Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 96a8693

Browse files
committed
Generate updated client
Signed-off-by: Nabarun Pal <[email protected]>
1 parent d7e0398 commit 96a8693

File tree

725 files changed

+124585
-51
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

725 files changed

+124585
-51
lines changed

.github/workflows/release.yaml

Whitespace-only changes.

changes.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
6d64cf67 Merge pull request #1265 from kubernetes-client/dependabot/github_actions/actions/setup-python-v2.1.3
2+
d31652a3 Bump actions/setup-python from v2.1.2 to v2.1.3
3+
945aac9f Merge pull request #1260 from kubernetes-client/dependabot/github_actions/actions/setup-python-v2.1.2
4+
d1ccbf22 Merge pull request #1262 from sighingnow/ht/return-created
5+
bbdfb73c Fixes for code format.
6+
9e534d02 Returns the created k8s objects in create_from_{dict,yaml}.
7+
f41b95b0 Merge pull request #1229 from scottilee/releasedocs
8+
f72d2a50 Bump actions/setup-python from v1 to v2.1.2
9+
f2b03567 Merge pull request #1259 from brendandburns/dependa
10+
a8243646 Add dependabot.
11+
b1cea7ef Address comments about hot issues
12+
1be69369 Merge branch 'master' of https://github.com/kubernetes-client/python into releasedocs
13+
457ac54a Merge pull request #1254 from palnabarun/cherry-pick-12.0.0b1-notes
14+
de822a28 Update the CHANGELOG and README
15+
0a78dc1e Merge pull request #1253 from ryphon/file-like-base-update
16+
a2ede702 touching readme with newline to check test validity
17+
8e1c331c updating base for file-like config load support
18+
42db3552 Merge pull request #1252 from unki/master
19+
32cb3f91 remove duplicate-lines from kubernetes/README.md
20+
4079c67c Merge pull request #1237 from iciclespider/port-forwarding
21+
b1dd9c4f Install socat on Kubernetes node for use by port forwarding.
22+
3da49a20 Update kubernetes/base to latest master with portforwarding implementation.
23+
c1249c9c Support both python 2.7 and 3.x.
24+
d9ec734a Fix tox errors.
25+
8afcebdf Add test that checks for portforward port error return value.
26+
49f3b6e0 Rework port forwarding unittest and example.
27+
fada718e Unittests and example for portforwarding ability added in python-base.
28+
482b8558 Update release README
29+
a1db8670 Remove redundant release doc
30+
b5603d8e Merge pull request #1220 from greed42/plugin-certificates

kubernetes/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: release-1.16
7-
- Package version: 12.0.0b1
7+
- Package version: 12.0.0
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99

1010
## Requirements.
@@ -60,6 +60,8 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY'
6060
# Defining host is optional and default to http://localhost
6161
configuration.host = "http://localhost"
6262

63+
# Defining host is optional and default to http://localhost
64+
configuration.host = "http://localhost"
6365
# Enter a context with an instance of the API kubernetes.client
6466
with kubernetes.client.ApiClient(configuration) as api_client:
6567
# Create an instance of the API class

kubernetes/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
__project__ = 'kubernetes'
1616
# The version is auto-updated. Please do not edit.
17-
__version__ = "12.0.0b1"
17+
__version__ = "12.0.0"
1818

1919
import kubernetes.client
2020
import kubernetes.config

kubernetes/client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from __future__ import absolute_import
1616

17-
__version__ = "12.0.0b1"
17+
__version__ = "12.0.0"
1818

1919
# import apis into sdk package
2020
from kubernetes.client.api.admissionregistration_api import AdmissionregistrationApi

kubernetes/client/api/custom_objects_api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2405,7 +2405,7 @@ def patch_cluster_custom_object_with_http_info(self, group, version, plural, nam
24052405

24062406
# HTTP header `Content-Type`
24072407
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2408-
['application/merge-patch+json']) # noqa: E501
2408+
['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501
24092409

24102410
# Authentication setting
24112411
auth_settings = ['BearerToken'] # noqa: E501
@@ -2574,7 +2574,7 @@ def patch_cluster_custom_object_scale_with_http_info(self, group, version, plura
25742574

25752575
# HTTP header `Content-Type`
25762576
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2577-
['application/merge-patch+json']) # noqa: E501
2577+
['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501
25782578

25792579
# Authentication setting
25802580
auth_settings = ['BearerToken'] # noqa: E501
@@ -2743,7 +2743,7 @@ def patch_cluster_custom_object_status_with_http_info(self, group, version, plur
27432743

27442744
# HTTP header `Content-Type`
27452745
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2746-
['application/merge-patch+json']) # noqa: E501
2746+
['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501
27472747

27482748
# Authentication setting
27492749
auth_settings = ['BearerToken'] # noqa: E501
@@ -2921,7 +2921,7 @@ def patch_namespaced_custom_object_with_http_info(self, group, version, namespac
29212921

29222922
# HTTP header `Content-Type`
29232923
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2924-
['application/merge-patch+json']) # noqa: E501
2924+
['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501
29252925

29262926
# Authentication setting
29272927
auth_settings = ['BearerToken'] # noqa: E501
@@ -3099,7 +3099,7 @@ def patch_namespaced_custom_object_scale_with_http_info(self, group, version, na
30993099

31003100
# HTTP header `Content-Type`
31013101
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3102-
['application/merge-patch+json']) # noqa: E501
3102+
['application/json-patch+json', 'application/merge-patch+json', 'application/apply-patch+yaml']) # noqa: E501
31033103

31043104
# Authentication setting
31053105
auth_settings = ['BearerToken'] # noqa: E501
@@ -3277,7 +3277,7 @@ def patch_namespaced_custom_object_status_with_http_info(self, group, version, n
32773277

32783278
# HTTP header `Content-Type`
32793279
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3280-
['application/merge-patch+json']) # noqa: E501
3280+
['application/json-patch+json', 'application/merge-patch+json', 'application/apply-patch+yaml']) # noqa: E501
32813281

32823282
# Authentication setting
32833283
auth_settings = ['BearerToken'] # noqa: E501

kubernetes/client/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7878
self.default_headers[header_name] = header_value
7979
self.cookie = cookie
8080
# Set default User-Agent.
81-
self.user_agent = 'OpenAPI-Generator/12.0.0b1/python'
81+
self.user_agent = 'OpenAPI-Generator/12.0.0/python'
8282
self.client_side_validation = configuration.client_side_validation
8383

8484
def __enter__(self):

kubernetes/client/apis/__init__.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

kubernetes/client/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def to_debug_report(self):
347347
"OS: {env}\n"\
348348
"Python Version: {pyversion}\n"\
349349
"Version of the API: release-1.16\n"\
350-
"SDK Package Version: 12.0.0b1".\
350+
"SDK Package Version: 12.0.0".\
351351
format(env=sys.platform, pyversion=sys.version)
352352

353353
def get_host_settings(self):

kubernetes/test/__init__.py

Whitespace-only changes.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# coding: utf-8
2+
3+
"""
4+
Kubernetes
5+
6+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7+
8+
The version of the OpenAPI document: release-1.16
9+
Generated by: https://openapi-generator.tech
10+
"""
11+
12+
13+
from __future__ import absolute_import
14+
15+
import unittest
16+
17+
import kubernetes.client
18+
from kubernetes.client.api.admissionregistration_api import AdmissionregistrationApi # noqa: E501
19+
from kubernetes.client.rest import ApiException
20+
21+
22+
class TestAdmissionregistrationApi(unittest.TestCase):
23+
"""AdmissionregistrationApi unit test stubs"""
24+
25+
def setUp(self):
26+
self.api = kubernetes.client.api.admissionregistration_api.AdmissionregistrationApi() # noqa: E501
27+
28+
def tearDown(self):
29+
pass
30+
31+
def test_get_api_group(self):
32+
"""Test case for get_api_group
33+
34+
"""
35+
pass
36+
37+
38+
if __name__ == '__main__':
39+
unittest.main()
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
# coding: utf-8
2+
3+
"""
4+
Kubernetes
5+
6+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7+
8+
The version of the OpenAPI document: release-1.16
9+
Generated by: https://openapi-generator.tech
10+
"""
11+
12+
13+
from __future__ import absolute_import
14+
15+
import unittest
16+
17+
import kubernetes.client
18+
from kubernetes.client.api.admissionregistration_v1_api import AdmissionregistrationV1Api # noqa: E501
19+
from kubernetes.client.rest import ApiException
20+
21+
22+
class TestAdmissionregistrationV1Api(unittest.TestCase):
23+
"""AdmissionregistrationV1Api unit test stubs"""
24+
25+
def setUp(self):
26+
self.api = kubernetes.client.api.admissionregistration_v1_api.AdmissionregistrationV1Api() # noqa: E501
27+
28+
def tearDown(self):
29+
pass
30+
31+
def test_create_mutating_webhook_configuration(self):
32+
"""Test case for create_mutating_webhook_configuration
33+
34+
"""
35+
pass
36+
37+
def test_create_validating_webhook_configuration(self):
38+
"""Test case for create_validating_webhook_configuration
39+
40+
"""
41+
pass
42+
43+
def test_delete_collection_mutating_webhook_configuration(self):
44+
"""Test case for delete_collection_mutating_webhook_configuration
45+
46+
"""
47+
pass
48+
49+
def test_delete_collection_validating_webhook_configuration(self):
50+
"""Test case for delete_collection_validating_webhook_configuration
51+
52+
"""
53+
pass
54+
55+
def test_delete_mutating_webhook_configuration(self):
56+
"""Test case for delete_mutating_webhook_configuration
57+
58+
"""
59+
pass
60+
61+
def test_delete_validating_webhook_configuration(self):
62+
"""Test case for delete_validating_webhook_configuration
63+
64+
"""
65+
pass
66+
67+
def test_get_api_resources(self):
68+
"""Test case for get_api_resources
69+
70+
"""
71+
pass
72+
73+
def test_list_mutating_webhook_configuration(self):
74+
"""Test case for list_mutating_webhook_configuration
75+
76+
"""
77+
pass
78+
79+
def test_list_validating_webhook_configuration(self):
80+
"""Test case for list_validating_webhook_configuration
81+
82+
"""
83+
pass
84+
85+
def test_patch_mutating_webhook_configuration(self):
86+
"""Test case for patch_mutating_webhook_configuration
87+
88+
"""
89+
pass
90+
91+
def test_patch_validating_webhook_configuration(self):
92+
"""Test case for patch_validating_webhook_configuration
93+
94+
"""
95+
pass
96+
97+
def test_read_mutating_webhook_configuration(self):
98+
"""Test case for read_mutating_webhook_configuration
99+
100+
"""
101+
pass
102+
103+
def test_read_validating_webhook_configuration(self):
104+
"""Test case for read_validating_webhook_configuration
105+
106+
"""
107+
pass
108+
109+
def test_replace_mutating_webhook_configuration(self):
110+
"""Test case for replace_mutating_webhook_configuration
111+
112+
"""
113+
pass
114+
115+
def test_replace_validating_webhook_configuration(self):
116+
"""Test case for replace_validating_webhook_configuration
117+
118+
"""
119+
pass
120+
121+
122+
if __name__ == '__main__':
123+
unittest.main()
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# coding: utf-8
2+
3+
"""
4+
Kubernetes
5+
6+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7+
8+
The version of the OpenAPI document: release-1.16
9+
Generated by: https://openapi-generator.tech
10+
"""
11+
12+
13+
from __future__ import absolute_import
14+
15+
import unittest
16+
import datetime
17+
18+
import kubernetes.client
19+
from kubernetes.client.models.admissionregistration_v1_service_reference import AdmissionregistrationV1ServiceReference # noqa: E501
20+
from kubernetes.client.rest import ApiException
21+
22+
class TestAdmissionregistrationV1ServiceReference(unittest.TestCase):
23+
"""AdmissionregistrationV1ServiceReference unit test stubs"""
24+
25+
def setUp(self):
26+
pass
27+
28+
def tearDown(self):
29+
pass
30+
31+
def make_instance(self, include_optional):
32+
"""Test AdmissionregistrationV1ServiceReference
33+
include_option is a boolean, when False only required
34+
params are included, when True both required and
35+
optional params are included """
36+
# model = kubernetes.client.models.admissionregistration_v1_service_reference.AdmissionregistrationV1ServiceReference() # noqa: E501
37+
if include_optional :
38+
return AdmissionregistrationV1ServiceReference(
39+
name = '0',
40+
namespace = '0',
41+
path = '0',
42+
port = 56
43+
)
44+
else :
45+
return AdmissionregistrationV1ServiceReference(
46+
name = '0',
47+
namespace = '0',
48+
)
49+
50+
def testAdmissionregistrationV1ServiceReference(self):
51+
"""Test AdmissionregistrationV1ServiceReference"""
52+
inst_req_only = self.make_instance(include_optional=False)
53+
inst_req_and_optional = self.make_instance(include_optional=True)
54+
55+
56+
if __name__ == '__main__':
57+
unittest.main()

0 commit comments

Comments
 (0)