Skip to content

Commit

Permalink
models do not copy default confguration
Browse files Browse the repository at this point in the history
  • Loading branch information
tomplus committed Jan 27, 2024
1 parent 2d39769 commit 0f19166
Show file tree
Hide file tree
Showing 567 changed files with 596 additions and 564 deletions.
8 changes: 8 additions & 0 deletions kubernetes_asyncio/client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,14 @@ def set_default(cls, default):
"""
cls._default = copy.deepcopy(default)

@classmethod
def get_default(cls):
"""Get default instance of configuration.
:return: The Configuration object.
"""
return cls._default

@classmethod
def get_default_copy(cls):
"""Return new instance of configuration.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class AdmissionregistrationV1ServiceReference(object):
def __init__(self, name=None, namespace=None, path=None, port=None, local_vars_configuration=None): # noqa: E501
"""AdmissionregistrationV1ServiceReference - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._name = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class AdmissionregistrationV1WebhookClientConfig(object):
def __init__(self, ca_bundle=None, service=None, url=None, local_vars_configuration=None): # noqa: E501
"""AdmissionregistrationV1WebhookClientConfig - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._ca_bundle = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class ApiextensionsV1ServiceReference(object):
def __init__(self, name=None, namespace=None, path=None, port=None, local_vars_configuration=None): # noqa: E501
"""ApiextensionsV1ServiceReference - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._name = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class ApiextensionsV1WebhookClientConfig(object):
def __init__(self, ca_bundle=None, service=None, url=None, local_vars_configuration=None): # noqa: E501
"""ApiextensionsV1WebhookClientConfig - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._ca_bundle = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class ApiregistrationV1ServiceReference(object):
def __init__(self, name=None, namespace=None, port=None, local_vars_configuration=None): # noqa: E501
"""ApiregistrationV1ServiceReference - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._name = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class AuthenticationV1TokenRequest(object):
def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501
"""AuthenticationV1TokenRequest - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._api_version = None
Expand Down
2 changes: 1 addition & 1 deletion kubernetes_asyncio/client/models/core_v1_endpoint_port.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class CoreV1EndpointPort(object):
def __init__(self, app_protocol=None, name=None, port=None, protocol=None, local_vars_configuration=None): # noqa: E501
"""CoreV1EndpointPort - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._app_protocol = None
Expand Down
2 changes: 1 addition & 1 deletion kubernetes_asyncio/client/models/core_v1_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class CoreV1Event(object):
def __init__(self, action=None, api_version=None, count=None, event_time=None, first_timestamp=None, involved_object=None, kind=None, last_timestamp=None, message=None, metadata=None, reason=None, related=None, reporting_component=None, reporting_instance=None, series=None, source=None, type=None, local_vars_configuration=None): # noqa: E501
"""CoreV1Event - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._action = None
Expand Down
2 changes: 1 addition & 1 deletion kubernetes_asyncio/client/models/core_v1_event_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class CoreV1EventList(object):
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
"""CoreV1EventList - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._api_version = None
Expand Down
2 changes: 1 addition & 1 deletion kubernetes_asyncio/client/models/core_v1_event_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class CoreV1EventSeries(object):
def __init__(self, count=None, last_observed_time=None, local_vars_configuration=None): # noqa: E501
"""CoreV1EventSeries - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._count = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class DiscoveryV1EndpointPort(object):
def __init__(self, app_protocol=None, name=None, port=None, protocol=None, local_vars_configuration=None): # noqa: E501
"""DiscoveryV1EndpointPort - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._app_protocol = None
Expand Down
2 changes: 1 addition & 1 deletion kubernetes_asyncio/client/models/events_v1_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class EventsV1Event(object):
def __init__(self, action=None, api_version=None, deprecated_count=None, deprecated_first_timestamp=None, deprecated_last_timestamp=None, deprecated_source=None, event_time=None, kind=None, metadata=None, note=None, reason=None, regarding=None, related=None, reporting_controller=None, reporting_instance=None, series=None, type=None, local_vars_configuration=None): # noqa: E501
"""EventsV1Event - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._action = None
Expand Down
2 changes: 1 addition & 1 deletion kubernetes_asyncio/client/models/events_v1_event_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class EventsV1EventList(object):
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
"""EventsV1EventList - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._api_version = None
Expand Down
2 changes: 1 addition & 1 deletion kubernetes_asyncio/client/models/events_v1_event_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class EventsV1EventSeries(object):
def __init__(self, count=None, last_observed_time=None, local_vars_configuration=None): # noqa: E501
"""EventsV1EventSeries - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._count = None
Expand Down
2 changes: 1 addition & 1 deletion kubernetes_asyncio/client/models/flowcontrol_v1_subject.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class FlowcontrolV1Subject(object):
def __init__(self, group=None, kind=None, service_account=None, user=None, local_vars_configuration=None): # noqa: E501
"""FlowcontrolV1Subject - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._group = None
Expand Down
2 changes: 1 addition & 1 deletion kubernetes_asyncio/client/models/rbac_v1_subject.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class RbacV1Subject(object):
def __init__(self, api_group=None, kind=None, name=None, namespace=None, local_vars_configuration=None): # noqa: E501
"""RbacV1Subject - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._api_group = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class StorageV1TokenRequest(object):
def __init__(self, audience=None, expiration_seconds=None, local_vars_configuration=None): # noqa: E501
"""StorageV1TokenRequest - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._audience = None
Expand Down
2 changes: 1 addition & 1 deletion kubernetes_asyncio/client/models/v1_affinity.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class V1Affinity(object):
def __init__(self, node_affinity=None, pod_affinity=None, pod_anti_affinity=None, local_vars_configuration=None): # noqa: E501
"""V1Affinity - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._node_affinity = None
Expand Down
2 changes: 1 addition & 1 deletion kubernetes_asyncio/client/models/v1_aggregation_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class V1AggregationRule(object):
def __init__(self, cluster_role_selectors=None, local_vars_configuration=None): # noqa: E501
"""V1AggregationRule - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._cluster_role_selectors = None
Expand Down
2 changes: 1 addition & 1 deletion kubernetes_asyncio/client/models/v1_api_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class V1APIGroup(object):
def __init__(self, api_version=None, kind=None, name=None, preferred_version=None, server_address_by_client_cidrs=None, versions=None, local_vars_configuration=None): # noqa: E501
"""V1APIGroup - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._api_version = None
Expand Down
2 changes: 1 addition & 1 deletion kubernetes_asyncio/client/models/v1_api_group_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class V1APIGroupList(object):
def __init__(self, api_version=None, groups=None, kind=None, local_vars_configuration=None): # noqa: E501
"""V1APIGroupList - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._api_version = None
Expand Down
2 changes: 1 addition & 1 deletion kubernetes_asyncio/client/models/v1_api_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class V1APIResource(object):
def __init__(self, categories=None, group=None, kind=None, name=None, namespaced=None, short_names=None, singular_name=None, storage_version_hash=None, verbs=None, version=None, local_vars_configuration=None): # noqa: E501
"""V1APIResource - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._categories = None
Expand Down
2 changes: 1 addition & 1 deletion kubernetes_asyncio/client/models/v1_api_resource_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class V1APIResourceList(object):
def __init__(self, api_version=None, group_version=None, kind=None, resources=None, local_vars_configuration=None): # noqa: E501
"""V1APIResourceList - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._api_version = None
Expand Down
2 changes: 1 addition & 1 deletion kubernetes_asyncio/client/models/v1_api_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class V1APIService(object):
def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501
"""V1APIService - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._api_version = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class V1APIServiceCondition(object):
def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501
"""V1APIServiceCondition - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._last_transition_time = None
Expand Down
2 changes: 1 addition & 1 deletion kubernetes_asyncio/client/models/v1_api_service_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class V1APIServiceList(object):
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
"""V1APIServiceList - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._api_version = None
Expand Down
2 changes: 1 addition & 1 deletion kubernetes_asyncio/client/models/v1_api_service_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class V1APIServiceSpec(object):
def __init__(self, ca_bundle=None, group=None, group_priority_minimum=None, insecure_skip_tls_verify=None, service=None, version=None, version_priority=None, local_vars_configuration=None): # noqa: E501
"""V1APIServiceSpec - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._ca_bundle = None
Expand Down
2 changes: 1 addition & 1 deletion kubernetes_asyncio/client/models/v1_api_service_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class V1APIServiceStatus(object):
def __init__(self, conditions=None, local_vars_configuration=None): # noqa: E501
"""V1APIServiceStatus - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._conditions = None
Expand Down
2 changes: 1 addition & 1 deletion kubernetes_asyncio/client/models/v1_api_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class V1APIVersions(object):
def __init__(self, api_version=None, kind=None, server_address_by_client_cidrs=None, versions=None, local_vars_configuration=None): # noqa: E501
"""V1APIVersions - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._api_version = None
Expand Down
2 changes: 1 addition & 1 deletion kubernetes_asyncio/client/models/v1_attached_volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class V1AttachedVolume(object):
def __init__(self, device_path=None, name=None, local_vars_configuration=None): # noqa: E501
"""V1AttachedVolume - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._device_path = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class V1AWSElasticBlockStoreVolumeSource(object):
def __init__(self, fs_type=None, partition=None, read_only=None, volume_id=None, local_vars_configuration=None): # noqa: E501
"""V1AWSElasticBlockStoreVolumeSource - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._fs_type = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class V1AzureDiskVolumeSource(object):
def __init__(self, caching_mode=None, disk_name=None, disk_uri=None, fs_type=None, kind=None, read_only=None, local_vars_configuration=None): # noqa: E501
"""V1AzureDiskVolumeSource - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._caching_mode = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class V1AzureFilePersistentVolumeSource(object):
def __init__(self, read_only=None, secret_name=None, secret_namespace=None, share_name=None, local_vars_configuration=None): # noqa: E501
"""V1AzureFilePersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._read_only = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class V1AzureFileVolumeSource(object):
def __init__(self, read_only=None, secret_name=None, share_name=None, local_vars_configuration=None): # noqa: E501
"""V1AzureFileVolumeSource - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._read_only = None
Expand Down
2 changes: 1 addition & 1 deletion kubernetes_asyncio/client/models/v1_binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class V1Binding(object):
def __init__(self, api_version=None, kind=None, metadata=None, target=None, local_vars_configuration=None): # noqa: E501
"""V1Binding - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
local_vars_configuration = Configuration.get_default()
self.local_vars_configuration = local_vars_configuration

self._api_version = None
Expand Down
Loading

0 comments on commit 0f19166

Please sign in to comment.