Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
AgentPoolType,
NetworkPlugin,
NetworkPolicy,
LoadBalancerSku,
)

__all__ = [
Expand Down Expand Up @@ -108,4 +109,5 @@
'AgentPoolType',
'NetworkPlugin',
'NetworkPolicy',
'LoadBalancerSku',
]
Original file line number Diff line number Diff line change
Expand Up @@ -218,3 +218,9 @@ class NetworkPolicy(str, Enum):

calico = "calico"
azure = "azure"


class LoadBalancerSku(str, Enum):

standard = "standard"
basic = "basic"
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ class ContainerServiceNetworkProfile(Model):
bridge network. It must not overlap with any Subnet IP ranges or the
Kubernetes service address range. Default value: "172.17.0.1/16" .
:type docker_bridge_cidr: str
:param load_balancer_sku: The load balancer sku for the managed cluster.
Possible values include: 'standard', 'basic'
:type load_balancer_sku: str or
~azure.mgmt.containerservice.v2019_04_01.models.LoadBalancerSku
"""

_validation = {
Expand All @@ -55,6 +59,7 @@ class ContainerServiceNetworkProfile(Model):
'service_cidr': {'key': 'serviceCidr', 'type': 'str'},
'dns_service_ip': {'key': 'dnsServiceIP', 'type': 'str'},
'docker_bridge_cidr': {'key': 'dockerBridgeCidr', 'type': 'str'},
'load_balancer_sku': {'key': 'loadBalancerSku', 'type': 'str'},
}

def __init__(self, **kwargs):
Expand All @@ -65,3 +70,4 @@ def __init__(self, **kwargs):
self.service_cidr = kwargs.get('service_cidr', "10.0.0.0/16")
self.dns_service_ip = kwargs.get('dns_service_ip', "10.0.0.10")
self.docker_bridge_cidr = kwargs.get('docker_bridge_cidr', "172.17.0.1/16")
self.load_balancer_sku = kwargs.get('load_balancer_sku', None)
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ class ContainerServiceNetworkProfile(Model):
bridge network. It must not overlap with any Subnet IP ranges or the
Kubernetes service address range. Default value: "172.17.0.1/16" .
:type docker_bridge_cidr: str
:param load_balancer_sku: The load balancer sku for the managed cluster.
Possible values include: 'standard', 'basic'
:type load_balancer_sku: str or
~azure.mgmt.containerservice.v2019_04_01.models.LoadBalancerSku
"""

_validation = {
Expand All @@ -55,13 +59,15 @@ class ContainerServiceNetworkProfile(Model):
'service_cidr': {'key': 'serviceCidr', 'type': 'str'},
'dns_service_ip': {'key': 'dnsServiceIP', 'type': 'str'},
'docker_bridge_cidr': {'key': 'dockerBridgeCidr', 'type': 'str'},
'load_balancer_sku': {'key': 'loadBalancerSku', 'type': 'str'},
}

def __init__(self, *, network_plugin="kubenet", network_policy=None, pod_cidr: str="10.244.0.0/16", service_cidr: str="10.0.0.0/16", dns_service_ip: str="10.0.0.10", docker_bridge_cidr: str="172.17.0.1/16", **kwargs) -> None:
def __init__(self, *, network_plugin="kubenet", network_policy=None, pod_cidr: str="10.244.0.0/16", service_cidr: str="10.0.0.0/16", dns_service_ip: str="10.0.0.10", docker_bridge_cidr: str="172.17.0.1/16", load_balancer_sku=None, **kwargs) -> None:
super(ContainerServiceNetworkProfile, self).__init__(**kwargs)
self.network_plugin = network_plugin
self.network_policy = network_policy
self.pod_cidr = pod_cidr
self.service_cidr = service_cidr
self.dns_service_ip = dns_service_ip
self.docker_bridge_cidr = docker_bridge_cidr
self.load_balancer_sku = load_balancer_sku
1 change: 1 addition & 0 deletions azure-mgmt-containerservice/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
version=version,
description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME),
long_description=readme + '\n\n' + history,
long_description_content_type='text/x-rst',
license='MIT License',
author='Microsoft Corporation',
author_email='[email protected]',
Expand Down