From 3e9c0b03b94c14434c6ed6883acdfb71182997f3 Mon Sep 17 00:00:00 2001 From: mbohlool Date: Mon, 21 Nov 2016 10:52:12 -0800 Subject: [PATCH] Update generated client --- docs/V1Secret.md | 2 +- k8sclient/models/v1_secret.py | 6 +++--- scripts/swagger.json | 7 ++----- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/docs/V1Secret.md b/docs/V1Secret.md index 6d31c7ff1..fcb3cd8da 100644 --- a/docs/V1Secret.md +++ b/docs/V1Secret.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | **dict(str, list[int])** | Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN or leading dot followed by valid DNS_SUBDOMAIN. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 | [optional] +**data** | **dict(str, str)** | Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN or leading dot followed by valid DNS_SUBDOMAIN. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] **string_data** | **dict(str, str)** | stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. | [optional] **type** | **str** | Used to facilitate programmatic handling of secret data. | [optional] diff --git a/k8sclient/models/v1_secret.py b/k8sclient/models/v1_secret.py index e0dffaa97..95b5d2c8a 100644 --- a/k8sclient/models/v1_secret.py +++ b/k8sclient/models/v1_secret.py @@ -42,7 +42,7 @@ class V1Secret(object): and the value is json key in definition. """ self.swagger_types = { - 'data': 'dict(str, list[int])', + 'data': 'dict(str, str)', 'metadata': 'V1ObjectMeta', 'string_data': 'dict(str, str)', 'type': 'str' @@ -68,7 +68,7 @@ class V1Secret(object): Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN or leading dot followed by valid DNS_SUBDOMAIN. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 :return: The data of this V1Secret. - :rtype: dict(str, list[int]) + :rtype: dict(str, str) """ return self._data @@ -79,7 +79,7 @@ class V1Secret(object): Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN or leading dot followed by valid DNS_SUBDOMAIN. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 :param data: The data of this V1Secret. - :type: dict(str, list[int]) + :type: dict(str, str) """ self._data = data diff --git a/scripts/swagger.json b/scripts/swagger.json index 5f1ad04ff..c40b87178 100644 --- a/scripts/swagger.json +++ b/scripts/swagger.json @@ -34956,11 +34956,8 @@ "description": "Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN or leading dot followed by valid DNS_SUBDOMAIN. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", "type": "object", "additionalProperties": { - "type": "array", - "items": { - "type": "integer", - "format": "byte" - } + "type": "string", + "format": "byte" } }, "metadata": {