From 016aab374042e808b18b8bfa7f0a6ce7111e280e Mon Sep 17 00:00:00 2001 From: Drew Anderson Date: Tue, 22 Jun 2021 16:05:17 +0200 Subject: [PATCH] make client; make test-go --- .sha256sum | 2 +- .../mgmt/2021-01-31-preview/redhatopenshift/models.go | 2 ++ .../redhatopenshift/v2021_01_31_preview/models/_models.py | 5 +++++ .../v2021_01_31_preview/models/_models_py3.py | 7 ++++++- .../preview/2021-01-31-preview/redhatopenshift.json | 4 ++++ 5 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.sha256sum b/.sha256sum index ff47d50c6..61dd1766b 100644 --- a/.sha256sum +++ b/.sha256sum @@ -1,2 +1,2 @@ d2e11a7924d0cbb70672fb0dd6b1a387ccaec8b97a6968adf5a1516d325374eb swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json -bbdf867021e306b60677d1d6840e5059fe92f058f09e861a10e7c000d36868f9 swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/2021-01-31-preview/redhatopenshift.json +03776a688635b846fd2f0eeda9c873d97602d41542230d9cfe4ba2e0d9d9ec43 swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/2021-01-31-preview/redhatopenshift.json diff --git a/pkg/client/services/redhatopenshift/mgmt/2021-01-31-preview/redhatopenshift/models.go b/pkg/client/services/redhatopenshift/mgmt/2021-01-31-preview/redhatopenshift/models.go index b1a2b85d9..97c4f5d3e 100644 --- a/pkg/client/services/redhatopenshift/mgmt/2021-01-31-preview/redhatopenshift/models.go +++ b/pkg/client/services/redhatopenshift/mgmt/2021-01-31-preview/redhatopenshift/models.go @@ -132,6 +132,8 @@ type MasterProfile struct { // NetworkProfile networkProfile represents a network profile. type NetworkProfile struct { + // NetworkType - The Network Provider to use when installing the cluster. + NetworkType *string `json:"networkType,omitempty"` // PodCidr - The CIDR used for OpenShift/Kubernetes Pods. PodCidr *string `json:"podCidr,omitempty"` // ServiceCidr - The CIDR used for OpenShift/Kubernetes Services. diff --git a/python/client/azure/mgmt/redhatopenshift/v2021_01_31_preview/models/_models.py b/python/client/azure/mgmt/redhatopenshift/v2021_01_31_preview/models/_models.py index d1a9940f6..d18fa4589 100644 --- a/python/client/azure/mgmt/redhatopenshift/v2021_01_31_preview/models/_models.py +++ b/python/client/azure/mgmt/redhatopenshift/v2021_01_31_preview/models/_models.py @@ -325,6 +325,9 @@ class MasterProfile(Model): class NetworkProfile(Model): """NetworkProfile represents a network profile. + :param network_type: The Network Provider to use when installing the + cluster. + :type network_type: str :param pod_cidr: The CIDR used for OpenShift/Kubernetes Pods. :type pod_cidr: str :param service_cidr: The CIDR used for OpenShift/Kubernetes Services. @@ -332,12 +335,14 @@ class NetworkProfile(Model): """ _attribute_map = { + 'network_type': {'key': 'networkType', 'type': 'str'}, 'pod_cidr': {'key': 'podCidr', 'type': 'str'}, 'service_cidr': {'key': 'serviceCidr', 'type': 'str'}, } def __init__(self, **kwargs): super(NetworkProfile, self).__init__(**kwargs) + self.network_type = kwargs.get('network_type', None) self.pod_cidr = kwargs.get('pod_cidr', None) self.service_cidr = kwargs.get('service_cidr', None) diff --git a/python/client/azure/mgmt/redhatopenshift/v2021_01_31_preview/models/_models_py3.py b/python/client/azure/mgmt/redhatopenshift/v2021_01_31_preview/models/_models_py3.py index 1d68c5993..0944f7cee 100644 --- a/python/client/azure/mgmt/redhatopenshift/v2021_01_31_preview/models/_models_py3.py +++ b/python/client/azure/mgmt/redhatopenshift/v2021_01_31_preview/models/_models_py3.py @@ -325,6 +325,9 @@ class MasterProfile(Model): class NetworkProfile(Model): """NetworkProfile represents a network profile. + :param network_type: The Network Provider to use when installing the + cluster. + :type network_type: str :param pod_cidr: The CIDR used for OpenShift/Kubernetes Pods. :type pod_cidr: str :param service_cidr: The CIDR used for OpenShift/Kubernetes Services. @@ -332,12 +335,14 @@ class NetworkProfile(Model): """ _attribute_map = { + 'network_type': {'key': 'networkType', 'type': 'str'}, 'pod_cidr': {'key': 'podCidr', 'type': 'str'}, 'service_cidr': {'key': 'serviceCidr', 'type': 'str'}, } - def __init__(self, *, pod_cidr: str=None, service_cidr: str=None, **kwargs) -> None: + def __init__(self, *, network_type: str=None, pod_cidr: str=None, service_cidr: str=None, **kwargs) -> None: super(NetworkProfile, self).__init__(**kwargs) + self.network_type = network_type self.pod_cidr = pod_cidr self.service_cidr = service_cidr diff --git a/swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/2021-01-31-preview/redhatopenshift.json b/swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/2021-01-31-preview/redhatopenshift.json index 471ef7aed..cc2343578 100644 --- a/swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/2021-01-31-preview/redhatopenshift.json +++ b/swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/2021-01-31-preview/redhatopenshift.json @@ -589,6 +589,10 @@ "NetworkProfile": { "description": "NetworkProfile represents a network profile.", "properties": { + "networkType": { + "description": "The Network Provider to use when installing the cluster.", + "type": "string" + }, "podCidr": { "description": "The CIDR used for OpenShift/Kubernetes Pods.", "type": "string"