This commit is contained in:
Drew Anderson 2021-06-22 16:05:17 +02:00
Родитель bfa19ccb80
Коммит 016aab3740
5 изменённых файлов: 18 добавлений и 2 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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.

Просмотреть файл

@ -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)

Просмотреть файл

@ -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

Просмотреть файл

@ -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"