Skip to content

Commit

Permalink
Updte master to kubernetes 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
mbohlool committed Oct 10, 2017
1 parent 7e4b809 commit 6b1a80c
Show file tree
Hide file tree
Showing 1,144 changed files with 77,638 additions and 17,116 deletions.
288 changes: 239 additions & 49 deletions kubernetes/README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion kubernetes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

__project__ = 'kubernetes'
# The version is auto-updated. Please do not edit.
__version__ = "3.0.0-snapshot"
__version__ = "4.0.0-snapshot"

import kubernetes.client
import kubernetes.config
Expand Down
124 changes: 105 additions & 19 deletions kubernetes/client/__init__.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions kubernetes/client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.7.9
OpenAPI spec version: v1.8.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down Expand Up @@ -71,7 +71,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, cook
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'Swagger-Codegen/3.0.0-snapshot/python'
self.user_agent = 'Swagger-Codegen/4.0.0-snapshot/python'

def __del__(self):
self.pool.close()
Expand Down
9 changes: 8 additions & 1 deletion kubernetes/client/apis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
# import apis into api package
from .admissionregistration_api import AdmissionregistrationApi
from .admissionregistration_v1alpha1_api import AdmissionregistrationV1alpha1Api
from .apiextensions_api import ApiextensionsApi
from .apiextensions_v1beta1_api import ApiextensionsV1beta1Api
from .apiregistration_api import ApiregistrationApi
from .apiregistration_v1beta1_api import ApiregistrationV1beta1Api
from .apis_api import ApisApi
from .apps_api import AppsApi
from .apps_v1beta1_api import AppsV1beta1Api
from .apps_v1beta2_api import AppsV1beta2Api
from .authentication_api import AuthenticationApi
from .authentication_v1_api import AuthenticationV1Api
from .authentication_v1beta1_api import AuthenticationV1beta1Api
Expand All @@ -16,9 +19,10 @@
from .authorization_v1beta1_api import AuthorizationV1beta1Api
from .autoscaling_api import AutoscalingApi
from .autoscaling_v1_api import AutoscalingV1Api
from .autoscaling_v2alpha1_api import AutoscalingV2alpha1Api
from .autoscaling_v2beta1_api import AutoscalingV2beta1Api
from .batch_api import BatchApi
from .batch_v1_api import BatchV1Api
from .batch_v1beta1_api import BatchV1beta1Api
from .batch_v2alpha1_api import BatchV2alpha1Api
from .certificates_api import CertificatesApi
from .certificates_v1beta1_api import CertificatesV1beta1Api
Expand All @@ -33,8 +37,11 @@
from .policy_api import PolicyApi
from .policy_v1beta1_api import PolicyV1beta1Api
from .rbac_authorization_api import RbacAuthorizationApi
from .rbac_authorization_v1_api import RbacAuthorizationV1Api
from .rbac_authorization_v1alpha1_api import RbacAuthorizationV1alpha1Api
from .rbac_authorization_v1beta1_api import RbacAuthorizationV1beta1Api
from .scheduling_api import SchedulingApi
from .scheduling_v1alpha1_api import SchedulingV1alpha1Api
from .settings_api import SettingsApi
from .settings_v1alpha1_api import SettingsV1alpha1Api
from .storage_api import StorageApi
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/client/apis/admissionregistration_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.7.9
OpenAPI spec version: v1.8.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
42 changes: 37 additions & 5 deletions kubernetes/client/apis/admissionregistration_v1alpha1_api.py

Large diffs are not rendered by default.

124 changes: 124 additions & 0 deletions kubernetes/client/apis/apiextensions_api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
# coding: utf-8

"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.8.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from __future__ import absolute_import

import sys
import os
import re

# python 2 and python 3 compatibility library
from six import iteritems

from ..api_client import ApiClient


class ApiextensionsApi(object):
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""

def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client

def get_api_group(self, **kwargs):
"""
get information of a group
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.get_api_group(async=True)
>>> result = thread.get()
:param async bool
:return: V1APIGroup
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.get_api_group_with_http_info(**kwargs)
else:
(data) = self.get_api_group_with_http_info(**kwargs)
return data

def get_api_group_with_http_info(self, **kwargs):
"""
get information of a group
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.get_api_group_with_http_info(async=True)
>>> result = thread.get()
:param async bool
:return: V1APIGroup
If the method is called asynchronously,
returns the request thread.
"""

all_params = []
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')

params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_api_group" % key
)
params[key] = val
del params['kwargs']

collection_formats = {}

path_params = {}

query_params = []

header_params = {}

form_params = []
local_var_files = {}

body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])

# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])

# Authentication setting
auth_settings = ['BearerToken']

return self.api_client.call_api('/apis/apiextensions.k8s.io/', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='V1APIGroup',
auth_settings=auth_settings,
async=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
Loading

0 comments on commit 6b1a80c

Please sign in to comment.