8000 Merge branch 'master' into config · mbohlool/client-python@a0577b0 · GitHub
[go: up one dir, main page]

Skip to content

Commit a0577b0

Browse files
authored
Merge branch 'master' into config
2 parents 318e551 + f399ece commit a0577b0

File tree

129 files changed

+785
-1085
lines changed
  • test
  • scripts
  • Some content is hidden

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

    129 files changed

    +785
    -1085
    lines changed

    kubernetes/README.md

    Lines changed: 0 additions & 3 deletions
    Original file line numberDiff line numberDiff line change
    @@ -635,8 +635,6 @@ Class | Method | HTTP request | Description
    635635
    - [ExtensionsV1beta1Scale](docs/ExtensionsV1beta1Scale.md)
    636636
    - [ExtensionsV1beta1ScaleSpec](docs/ExtensionsV1beta1ScaleSpec.md)
    637637
    - [ExtensionsV1beta1ScaleStatus](docs/ExtensionsV1beta1ScaleStatus.md)
    638-
    - [IntstrIntOrString](docs/IntstrIntOrString.md)
    639-
    - [ResourceQuantity](docs/ResourceQuantity.md)
    640638
    - [RuntimeRawExtension](docs/RuntimeRawExtension.md)
    641639
    - [V1APIGroup](docs/V1APIGroup.md)
    642640
    - [V1APIGroupList](docs/V1APIGroupList.md)
    @@ -817,7 +815,6 @@ Class | Method | HTTP request | Description
    817815
    - [V1SubjectAccessReviewStatus](docs/V1SubjectAccessReviewStatus.md)
    818816
    - [V1TCPSocketAction](docs/V1TCPSocketAction.md)
    819817
    - [V1Taint](docs/V1Taint.md)
    820-
    - [V1Time](docs/V1Time.md)
    821818
    - [V1TokenReview](docs/V1TokenReview.md)
    822819
    - [V1TokenReviewSpec](docs/V1TokenReviewSpec.md)
    823820
    - [V1TokenReviewStatus](docs/V1TokenReviewStatus.md)

    kubernetes/client/__init__.py

    Lines changed: 0 additions & 3 deletions
    Original file line numberDiff line numberDiff line change
    @@ -38,8 +38,6 @@
    3838
    from .models.extensions_v1beta1_scale import ExtensionsV1beta1Scale
    3939
    from .models.extensions_v1beta1_scale_spec import ExtensionsV1beta1ScaleSpec
    4040
    from .models.extensions_v1beta1_scale_status import ExtensionsV1beta1ScaleStatus
    41-
    from .models.intstr_int_or_string import IntstrIntOrString
    42-
    from .models.resource_quantity import ResourceQuantity
    4341
    from .models.runtime_raw_extension import RuntimeRawExtension
    4442
    from .models.v1_api_group import V1APIGroup
    4543
    from .models.v1_api_group_list import V1APIGroupList
    @@ -220,7 +218,6 @@
    220218
    from .models.v1_subject_access_review_status import V1SubjectAccessReviewStatus
    221219
    from .models.v1_tcp_socket_action import V1TCPSocketAction
    222220
    from .models.v1_taint import V1Taint
    223-
    from .models.v1_time import V1Time
    224221
    from .models.v1_token_review import V1TokenReview
    225222
    from .models.v1_token_review_spec import V1TokenReviewSpec
    226223
    from .models.v1_token_review_status import V1TokenReviewStatus

    kubernetes/client/api_client.py

    Lines changed: 4 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -585,6 +585,8 @@ def __deserialize_date(self, string):
    585585
    :param string: str.
    586586
    :return: date.
    587587
    """
    588+
    if not string:
    589+
    return None
    588590
    try:
    589591
    from dateutil.parser import parse
    590592
    return parse(string).date()
    @@ -606,6 +608,8 @@ def __deserialize_datatime(self, string):
    606608
    :param string: str.
    607609
    :return: datetime.
    608610
    """
    611+
    if not string:
    612+
    return None
    609613
    try:
    610614
    from dateutil.parser import parse
    611615
    return parse(string)

    kubernetes/client/apis/apps_v1beta1_api.py

    Lines changed: 10 additions & 10 deletions
    Original file line numberDiff line numberDiff line change
    @@ -1537,7 +1537,7 @@ def patch_namespaced_deployment(self, name, namespace, body, **kwargs):
    15371537
    for asynchronous request. (optional)
    15381538
    :param str name: name of the Deployment (required)
    15391539
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    1540-
    :param V1Patch body: (required)
    1540+
    :param object body: (required)
    15411541
    :param str pretty: If 'true', then the output is pretty printed.
    15421542
    :return: AppsV1beta1Deployment
    15431543
    If the method is called asynchronously,
    @@ -1565,7 +1565,7 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw
    15651565
    for asynchronous request. (optional)
    15661566
    :param str name: name of the Deployment (required)
    15671567
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    1568-
    :param V1Patch body: (required)
    1568+
    :param object body: (required)
    15691569
    :param str pretty: If 'true', then the output is pretty printed.
    15701570
    :return: AppsV1beta1Deployment
    15711571
    If the method is called asynchronously,
    @@ -1660,7 +1660,7 @@ def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs):
    16601660
    for asynchronous request. (optional)
    16611661
    :param str name: name of the Deployment (required)
    16621662
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    1663-
    :param V1Patch body: (required)
    1663+
    :param object body: (required)
    16641664
    :param str pretty: If 'true', then the output is pretty printed.
    16651665
    :return: AppsV1beta1Deployment
    16661666
    If the method is called asynchronously,
    @@ -1688,7 +1688,7 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod
    16881688
    for asynchronous request. (optional)
    16891689
    :param str name: name of the Deployment (required)
    16901690
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    1691-
    :param V1Patch body: (required)
    1691+
    :param object body: (required)
    16921692
    :param str pretty: If 'true', then the output is pretty printed.
    16931693
    :return: AppsV1beta1Deployment
    16941694
    If the method is called asynchronously,
    @@ -1783,7 +1783,7 @@ def patch_namespaced_scale_scale(self, name, namespace, body, **kwargs):
    17831783
    for asynchronous request. (optional)
    17841784
    :param str name: name of the Scale (required)
    17851785
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    1786-
    :param V1Patch body: (required)
    1786+
    :param object body: (required)
    17871787
    :param str pretty: If 'true', then the output is pretty printed.
    17881788
    :return: AppsV1beta1Scale
    17891789
    If the method is called asynchronously,
    @@ -1811,7 +1811,7 @@ def patch_namespaced_scale_scale_with_http_info(self, name, namespace, body, **k
    18111811
    for asynchronous request. (optional)
    18121812
    :param str name: name of the Scale (required)
    18131813
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    1814-
    :param V1Patch body: (required)
    1814+
    :param object body: (required)
    18151815
    :param str pretty: If 'true', then the output is pretty printed.
    18161816
    :return: AppsV1beta1Scale
    18171817
    If the method is called asynchronously,
    @@ -1906,7 +1906,7 @@ def patch_namespaced_stateful_set(self, name, namespace, body, **kwargs):
    19061906
    for asynchronous request. (optional)
    19071907
    :param str name: name of the StatefulSet (required)
    19081908
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    1909-
    :param V1Patch body: (required)
    1909+
    :param object body: (required)
    19101910
    :param str pretty: If 'true', then the output is pretty printed.
    19111911
    :return: V1beta1StatefulSet
    19121912
    If the method is called asynchronously,
    @@ -1934,7 +1934,7 @@ def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, **
    19341934
    for asynchronous request. (optional)
    19351935
    :param str name: name of the StatefulSet (required)
    19361936
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    1937-
    :param V1Patch body: (required)
    1937+
    :param object body: (required)
    19381938
    :param str pretty: If 'true', then the output is pretty printed.
    19391939
    :return: V1beta1StatefulSet
    19401940
    If the method is called asynchronously,
    @@ -2029,7 +2029,7 @@ def patch_namespaced_stateful_set_status(self, name, namespace, body, **kwargs):
    20292029
    for asynchronous request. (optional)
    20302030
    :param str name: name of the StatefulSet (required)
    20312031
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    2032-
    :param V1Patch body: (required)
    2032+
    :param object body: (required)
    20332033
    :param str pretty: If 'true', then the output is pretty printed.
    20342034
    :return: V1beta1StatefulSet
    20352035
    If the method is called asynchronously,
    @@ -2057,7 +2057,7 @@ def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, b
    20572057
    for asynchronous request. (optional)
    20582058
    :param str name: name of the StatefulSet (required)
    20592059
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    2060-
    :param V1Patch body: (required)
    2060+
    :param object body: (required)
    20612061
    :param str pretty: If 'true', then the output is pretty printed.
    20622062
    :return: V1beta1StatefulSet
    20632063
    If the method is called asynchronously,

    kubernetes/client/apis/autoscaling_v1_api.py

    Lines changed: 4 additions & 4 deletions
    Original file line numberDiff line numberDiff line change
    @@ -783,7 +783,7 @@ def patch_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kw
    783783
    for asynchronous request. (optional)
    784784
    :param str name: name of the HorizontalPodAutoscaler (required)
    785785
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    786-
    :param V1Patch body: (required)
    786+
    :param object body: (required)
    787787
    :param str pretty: If 'true', then the output is pretty printed.
    788788
    :return: V1HorizontalPodAutoscaler
    789789
    If the method is called asynchronously,
    @@ -811,7 +811,7 @@ def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namesp
    811811
    for asynchronous request. (optional)
    812812
    :param str name: name of the HorizontalPodAutoscaler (required)
    813813
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    814-
    :param V1Patch body: (required)
    814+
    :param object body: (required)
    815815
    :param str pretty: If 'true', then the output is pretty printed.
    816816
    :return: V1HorizontalPodAutoscaler
    817817
    If the method is called asynchronously,
    @@ -906,7 +906,7 @@ def patch_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, bod
    906906
    for asynchronous request. (optional)
    907907
    :param str name: name of the HorizontalPodAutoscaler (required)
    908908
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    909-
    :param V1Patch body: (required)
    909+
    :param object body: (required)
    910910
    :param str pretty: If 'true', then the output is pretty printed.
    911911
    :return: V1HorizontalPodAutoscaler
    912912
    If the method is called asynchronously,
    @@ -934,7 +934,7 @@ def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name,
    934934
    for asynchronous request. (optional)
    935935
    :param str name: name of the HorizontalPodAutoscaler (required)
    936936
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    937-
    :param V1Patch body: (required)
    937+
    :param object body: (required)
    938938
    :param str pretty: If 'true', then the output is pretty printed.
    939939
    :return: V1HorizontalPodAutoscaler
    940940
    If the method is called asynchronously,

    kubernetes/client/apis/autoscaling_v2alpha1_api.py

    Lines changed: 4 additions & 4 deletions
    Original file line numberDiff line numberDiff line change
    @@ -783,7 +783,7 @@ def patch_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kw
    783783
    for asynchronous request. (optional)
    784784
    :param str name: name of the HorizontalPodAutoscaler (required)
    785785
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    786-
    :param V1Patch body: (required)
    786+
    :param object body: (required)
    787787
    :param str pretty: If 'true', then the output is pretty printed.
    788788
    :return: V2alpha1HorizontalPodAutoscaler
    789789
    If the method is called asynchronously,
    @@ -811,7 +811,7 @@ def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namesp
    811811
    for asynchronous request. (optional)
    812812
    :param str name: name of the HorizontalPodAutoscaler (required)
    813813
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    814-
    :param V1Patch body: (required)
    814+
    :param object body: (required)
    815815
    :param str pretty: If 'true', then the output is pretty printed.
    816816
    :return: V2alpha1HorizontalPodAutoscaler
    817817
    If the method is called asynchronously,
    @@ -906,7 +906,7 @@ def patch_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, bod
    906906
    for asynchronous request. (optional)
    907907
    :param str name: name of the HorizontalPodAutoscaler (required)
    908908
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    909-
    :param V1Patch body: (required)
    909+
    :param object body: (required)
    910910
    :param str pretty: If 'true', then the output is pretty printed.
    911911
    :return: V2alpha1HorizontalPodAutoscaler
    912912
    If the method is called asynchronously,
    @@ -934,7 +934,7 @@ def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name,
    934934
    for asynchronous request. (optional)
    935935
    :param str name: name of the HorizontalPodAutoscaler (required)
    936936
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    937-
    :param V1Patch body: (required)
    937+
    :param object body: (required)
    938938
    :param str pretty: If 'true', then the output is pretty printed.
    939939
    :return: V2alpha1HorizontalPodAutoscaler
    940940
    If the method is called asynchronously,

    kubernetes/client/apis/batch_v1_api.py

    Lines changed: 4 additions & 4 deletions
    Original file line numberDiff line numberDiff line change
    @@ -783,7 +783,7 @@ def patch_namespaced_job(self, name, namespace, body, **kwargs):
    783783
    for asynchronous request. (optional)
    784784
    :param str name: name of the Job (required)
    785785
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    786-
    :param V1Patch body: (required)
    786+
    :param object body: (required)
    787787
    :param str pretty: If 'true', then the output is pretty printed.
    788788
    :return: V1Job
    789789
    If the method is called asynchronously,
    @@ -811,7 +811,7 @@ def patch_namespaced_job_with_http_info(self, name, namespace, body, **kwargs):
    811811
    for asynchronous request. (optional)
    812812
    :param str name: name of the Job (required)
    813813
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    814-
    :param V1Patch body: (required)
    814+
    :param object body: (required)
    815815
    :param str pretty: If 'true', then the output is pretty printed.
    816816
    :return: V1Job
    817817
    If the method is called asynchronously,
    @@ -906,7 +906,7 @@ def patch_namespaced_job_status(self, name, namespace, body, **kwargs):
    906906
    for asynchronous request. (optional)
    907907
    :param str name: name of the Job (required)
    908908
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    909-
    :param V1Patch body: (required)
    909+
    :param object body: (required)
    910910
    :param str pretty: If 'true', then the output is pretty printed.
    911911
    :return: V1Job
    912912
    If the method is called asynchronously,
    @@ -934,7 +934,7 @@ def patch_namespaced_job_status_with_http_info(self, name, namespace, body, **kw
    934934
    for asynchronous request. (optional)
    935935
    :param str name: name of the Job (required)
    936936
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    937-
    :param V1Patch body: (required)
    937+
    :param object body: (required)
    938938
    :param str pretty: If 'true', then the output is pretty printed.
    939939
    :return: V1Job
    940940
    If the method is called asynchronously,

    kubernetes/client/apis/batch_v2alpha1_api.py

    Lines changed: 8 additions & 8 deletions
    Original file line numberDiff line numberDiff line change
    @@ -1414,7 +1414,7 @@ def patch_namespaced_cron_job(self, name, namespace, body, **kwargs):
    14141414
    for asynchronous request. (optional)
    14151415
    :param str name: name of the CronJob (required)
    14161416
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    1417-
    :param V1Patch body: (required)
    1417+
    :param object body: (required)
    14181418
    :param str pretty: If 'true', then the output is pretty printed.
    14191419
    :return: V2alpha1CronJob
    14201420
    If the method is called asynchronously,
    @@ -1442,7 +1442,7 @@ def patch_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwar
    14421442
    for asynchronous request. (optional)
    14431443
    :param str name: name of the CronJob (required)
    14441444
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    1445-
    :param V1Patch body: (required)
    1445+
    :param object body: (required)
    14461446
    :param str pretty: If 'true', then the output is pretty printed.
    14471447
    :return: V2alpha1CronJob
    14481448
    If the method is called asynchronously,
    @@ -1537,7 +1537,7 @@ def patch_namespaced_cron_job_status(self, name, namespace, body, **kwargs):
    15371537
    for asynchronous request. (optional)
    15381538
    :param str name: name of the CronJob (required)
    15391539
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    1540-
    :param V1Patch body: (required)
    1540+
    :param object body: (required)
    15411541
    :param str pretty: If 'true', then the output is pretty printed.
    15421542
    :return: V2alpha1CronJob
    15431543
    If the method is called asynchronously,
    @@ -1565,7 +1565,7 @@ def patch_namespaced_cron_job_status_with_http_info(self, name, namespace, body,
    15651565
    for asynchronous request. (optional)
    15661566
    :param str name: name of the CronJob (required)
    15671567
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    1568-
    :param V1Patch body: (required)
    1568+
    :param object body: (required)
    15691569
    :param str pretty: If 'true', then the output is pretty printed.
    15701570
    :return: V2alpha1CronJob
    15711571
    If the method is called asynchronously,
    @@ -1660,7 +1660,7 @@ def patch_namespaced_scheduled_job(self, name, namespace, body, **kwargs):
    16601660
    for asynchronous request. (optional)
    16611661
    :param str name: name of the ScheduledJob (required)
    16621662
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    1663-
    :param V1Patch body: (required)
    1663+
    :param object body: (required)
    16641664
    :param str pretty: If 'true', then the output is pretty printed.
    16651665
    :return: V2alpha1CronJob
    16661666
    If the method is called asynchronously,
    @@ -1688,7 +1688,7 @@ def patch_namespaced_scheduled_job_with_http_info(self, name, namespace, body, *
    16881688
    for asynchronous request. (optional)
    16891689
    :param str name: name of the ScheduledJob (required)
    16901690
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    1691-
    :param V1Patch body: (required)
    1691+
    :param object body: (required)
    16921692
    :param str pretty: If 'true', then the output is pretty printed.
    16931693
    :return: V2alpha1CronJob
    16941694
    If the method is called asynchronously,
    @@ -1783,7 +1783,7 @@ def patch_namespaced_scheduled_job_status(self, name, namespace, body, **kwargs)
    17831783
    for asynchronous request. (optional)
    17841784
    :param str name: name of the ScheduledJob (required)
    17851785
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    1786-
    :param V1Patch body: (required)
    1786+
    :param object body: (required)
    17871787
    :param str pretty: If 'true', then the output is pretty printed.
    17881788
    :return: V2alpha1CronJob
    17891789
    If the method is called asynchronously,
    @@ -1811,7 +1811,7 @@ def patch_namespaced_scheduled_job_status_with_http_info(self, name, namespace,
    18111811
    for asynchronous request. (optional)
    18121812
    :param str name: name of the ScheduledJob (required)
    18131813
    :param str namespace: object name and auth scope, such as for teams and projects (required)
    1814-
    :param V1Patch body: (required)
    1814+
    :param object body: (required)
    18151815
    :param str pretty: If 'true', then the output is pretty printed.
    18161816
    :return: V2alpha1CronJob
    18171817
    If the method is called asynchronously,

    kubernetes/client/apis/certificates_v1beta1_api.py

    Lines changed: 2 additions & 2 deletions
    Original file line numberDiff line numberDiff line change
    @@ -632,7 +632,7 @@ def patch_certificate_signing_request(self, name, body, **kwargs):
    632632
    :param callback function: The callback function
    633633
    for asynchronous request. (optional)
    634634
    :param str name: name of the CertificateSigningRequest (required)
    635-
    :param V1Patch body: (required)
    635+
    :param object body: (required)
    636636
    :param str pretty: If 'true', then the output is pretty printed.
    637637
    :return: V1beta1CertificateSigningRequest
    638638
    If the method is called asynchronously,
    @@ -659,7 +659,7 @@ def patch_certificate_signing_request_with_http_info(self, name, body, **kwargs)
    659659
    :param callback function: The callback function
    660660
    for asynchronous request. (optional)
    661661
    :param str name: name of the CertificateSigningRequest (required)
    662-
    :param V1Patch body: (required)
    662+
    :param object body: (required)
    663663
    :param str pretty: If 'true', then the output is pretty printed.
    664664
    :return: V1beta1CertificateSigningRequest
    665665
    If the method is called asynchronously,

    0 commit comments

    Comments
     (0)
    0