Skip to content
Closed
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
1 change: 1 addition & 0 deletions sdk/appplatform/azure-mgmt-appplatform/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include _meta.json
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
Expand Down
8 changes: 8 additions & 0 deletions sdk/appplatform/azure-mgmt-appplatform/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"autorest": "V2",
"use": "@microsoft.azure/autorest.python@~4.0.71",
"commit": "a703c8dad8034959f6da21d3e013904ea85625e0",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/appplatform/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk [email protected]/autorest.python@~4.0.71 --version=V2",
"readme": "specification/appplatform/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
from ._models_py3 import PersistentDisk
from ._models_py3 import ProxyResource
from ._models_py3 import RegenerateTestKeyRequestPayload
from ._models_py3 import RequiredTraffic
from ._models_py3 import Resource
from ._models_py3 import ResourceSku
from ._models_py3 import ResourceSkuCapabilities
Expand Down Expand Up @@ -101,6 +102,7 @@
from ._models import PersistentDisk
from ._models import ProxyResource
from ._models import RegenerateTestKeyRequestPayload
from ._models import RequiredTraffic
from ._models import Resource
from ._models import ResourceSku
from ._models import ResourceSkuCapabilities
Expand Down Expand Up @@ -131,6 +133,7 @@
ProvisioningState,
ConfigServerState,
TraceProxyState,
TrafficDirection,
ManagedIdentityType,
TestKeyType,
AppResourceProvisioningState,
Expand Down Expand Up @@ -182,6 +185,7 @@
'PersistentDisk',
'ProxyResource',
'RegenerateTestKeyRequestPayload',
'RequiredTraffic',
'Resource',
'ResourceSku',
'ResourceSkuCapabilities',
Expand Down Expand Up @@ -211,6 +215,7 @@
'ProvisioningState',
'ConfigServerState',
'TraceProxyState',
'TrafficDirection',
'ManagedIdentityType',
'TestKeyType',
'AppResourceProvisioningState',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ class TraceProxyState(str, Enum):
updating = "Updating"


class TrafficDirection(str, Enum):

inbound = "Inbound"
outbound = "Outbound"


class ManagedIdentityType(str, Enum):

none = "None"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1238,10 +1238,15 @@ class NetworkProfile(Model):
instance.
:vartype outbound_ips:
~azure.mgmt.appplatform.v2019_05_01_preview.models.NetworkProfileOutboundIPs
:ivar required_traffics: Required inbound or outbound traffics for Azure
Spring Cloud instance.
:vartype required_traffics:
list[~azure.mgmt.appplatform.v2019_05_01_preview.models.RequiredTraffic]
"""

_validation = {
'outbound_ips': {'readonly': True},
'required_traffics': {'readonly': True},
}

_attribute_map = {
Expand All @@ -1251,6 +1256,7 @@ class NetworkProfile(Model):
'service_runtime_network_resource_group': {'key': 'serviceRuntimeNetworkResourceGroup', 'type': 'str'},
'app_network_resource_group': {'key': 'appNetworkResourceGroup', 'type': 'str'},
'outbound_ips': {'key': 'outboundIPs', 'type': 'NetworkProfileOutboundIPs'},
'required_traffics': {'key': 'requiredTraffics', 'type': '[RequiredTraffic]'},
}

def __init__(self, **kwargs):
Expand All @@ -1261,6 +1267,7 @@ def __init__(self, **kwargs):
self.service_runtime_network_resource_group = kwargs.get('service_runtime_network_resource_group', None)
self.app_network_resource_group = kwargs.get('app_network_resource_group', None)
self.outbound_ips = None
self.required_traffics = None


class NetworkProfileOutboundIPs(Model):
Expand Down Expand Up @@ -1421,6 +1428,51 @@ def __init__(self, **kwargs):
self.key_type = kwargs.get('key_type', None)


class RequiredTraffic(Model):
"""Required inbound or outbound traffic for Azure Spring Cloud instance.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar protocol: The protocol of required traffic
:vartype protocol: str
:ivar port: The port of required traffic
:vartype port: int
:ivar ips: The ip list of required traffic
:vartype ips: list[str]
:ivar fqdns: The FQDN list of required traffic
:vartype fqdns: list[str]
:ivar direction: The direction of required traffic. Possible values
include: 'Inbound', 'Outbound'
:vartype direction: str or
~azure.mgmt.appplatform.v2019_05_01_preview.models.TrafficDirection
"""

_validation = {
'protocol': {'readonly': True},
'port': {'readonly': True},
'ips': {'readonly': True},
'fqdns': {'readonly': True},
'direction': {'readonly': True},
}

_attribute_map = {
'protocol': {'key': 'protocol', 'type': 'str'},
'port': {'key': 'port', 'type': 'int'},
'ips': {'key': 'ips', 'type': '[str]'},
'fqdns': {'key': 'fqdns', 'type': '[str]'},
'direction': {'key': 'direction', 'type': 'str'},
}

def __init__(self, **kwargs):
super(RequiredTraffic, self).__init__(**kwargs)
self.protocol = None
self.port = None
self.ips = None
self.fqdns = None
self.direction = None


class ResourceSku(Model):
"""Describes an available Azure Spring Cloud SKU.

Expand Down Expand Up @@ -1724,9 +1776,9 @@ def __init__(self, **kwargs):
class Sku(Model):
"""Sku of Azure Spring Cloud.

:param name: Name of the Sku
:param name: Name of the Sku. Default value: "S0" .
:type name: str
:param tier: Tier of the Sku
:param tier: Tier of the Sku. Default value: "Standard" .
:type tier: str
:param capacity: Current capacity of the target resource
:type capacity: int
Expand All @@ -1740,8 +1792,8 @@ class Sku(Model):

def __init__(self, **kwargs):
super(Sku, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.tier = kwargs.get('tier', None)
self.name = kwargs.get('name', "S0")
self.tier = kwargs.get('tier', "Standard")
self.capacity = kwargs.get('capacity', None)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1238,10 +1238,15 @@ class NetworkProfile(Model):
instance.
:vartype outbound_ips:
~azure.mgmt.appplatform.v2019_05_01_preview.models.NetworkProfileOutboundIPs
:ivar required_traffics: Required inbound or outbound traffics for Azure
Spring Cloud instance.
:vartype required_traffics:
list[~azure.mgmt.appplatform.v2019_05_01_preview.models.RequiredTraffic]
"""

_validation = {
'outbound_ips': {'readonly': True},
'required_traffics': {'readonly': True},
}

_attribute_map = {
Expand All @@ -1251,6 +1256,7 @@ class NetworkProfile(Model):
'service_runtime_network_resource_group': {'key': 'serviceRuntimeNetworkResourceGroup', 'type': 'str'},
'app_network_resource_group': {'key': 'appNetworkResourceGroup', 'type': 'str'},
'outbound_ips': {'key': 'outboundIPs', 'type': 'NetworkProfileOutboundIPs'},
'required_traffics': {'key': 'requiredTraffics', 'type': '[RequiredTraffic]'},
}

def __init__(self, *, service_runtime_subnet_id: str=None, app_subnet_id: str=None, service_cidr: str=None, service_runtime_network_resource_group: str=None, app_network_resource_group: str=None, **kwargs) -> None:
Expand All @@ -1261,6 +1267,7 @@ def __init__(self, *, service_runtime_subnet_id: str=None, app_subnet_id: str=No
self.service_runtime_network_resource_group = service_runtime_network_resource_group
self.app_network_resource_group = app_network_resource_group
self.outbound_ips = None
self.required_traffics = None


class NetworkProfileOutboundIPs(Model):
Expand Down Expand Up @@ -1421,6 +1428,51 @@ def __init__(self, *, key_type, **kwargs) -> None:
self.key_type = key_type


class RequiredTraffic(Model):
"""Required inbound or outbound traffic for Azure Spring Cloud instance.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar protocol: The protocol of required traffic
:vartype protocol: str
:ivar port: The port of required traffic
:vartype port: int
:ivar ips: The ip list of required traffic
:vartype ips: list[str]
:ivar fqdns: The FQDN list of required traffic
:vartype fqdns: list[str]
:ivar direction: The direction of required traffic. Possible values
include: 'Inbound', 'Outbound'
:vartype direction: str or
~azure.mgmt.appplatform.v2019_05_01_preview.models.TrafficDirection
"""

_validation = {
'protocol': {'readonly': True},
'port': {'readonly': True},
'ips': {'readonly': True},
'fqdns': {'readonly': True},
'direction': {'readonly': True},
}

_attribute_map = {
'protocol': {'key': 'protocol', 'type': 'str'},
'port': {'key': 'port', 'type': 'int'},
'ips': {'key': 'ips', 'type': '[str]'},
'fqdns': {'key': 'fqdns', 'type': '[str]'},
'direction': {'key': 'direction', 'type': 'str'},
}

def __init__(self, **kwargs) -> None:
super(RequiredTraffic, self).__init__(**kwargs)
self.protocol = None
self.port = None
self.ips = None
self.fqdns = None
self.direction = None


class ResourceSku(Model):
"""Describes an available Azure Spring Cloud SKU.

Expand Down Expand Up @@ -1724,9 +1776,9 @@ def __init__(self, *, log_specifications=None, metric_specifications=None, **kwa
class Sku(Model):
"""Sku of Azure Spring Cloud.

:param name: Name of the Sku
:param name: Name of the Sku. Default value: "S0" .
:type name: str
:param tier: Tier of the Sku
:param tier: Tier of the Sku. Default value: "Standard" .
:type tier: str
:param capacity: Current capacity of the target resource
:type capacity: int
Expand All @@ -1738,7 +1790,7 @@ class Sku(Model):
'capacity': {'key': 'capacity', 'type': 'int'},
}

def __init__(self, *, name: str=None, tier: str=None, capacity: int=None, **kwargs) -> None:
def __init__(self, *, name: str="S0", tier: str="Standard", capacity: int=None, **kwargs) -> None:
super(Sku, self).__init__(**kwargs)
self.name = name
self.tier = tier
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
from ._models_py3 import PersistentDisk
from ._models_py3 import ProxyResource
from ._models_py3 import RegenerateTestKeyRequestPayload
from ._models_py3 import RequiredTraffic
from ._models_py3 import Resource
from ._models_py3 import ResourceSku
from ._models_py3 import ResourceSkuCapabilities
Expand Down Expand Up @@ -110,6 +111,7 @@
from ._models import PersistentDisk
from ._models import ProxyResource
from ._models import RegenerateTestKeyRequestPayload
from ._models import RequiredTraffic
from ._models import Resource
from ._models import ResourceSku
from ._models import ResourceSkuCapabilities
Expand Down Expand Up @@ -137,6 +139,7 @@
from ._paged_models import ServiceResourcePaged
from ._app_platform_management_client_enums import (
ProvisioningState,
TrafficDirection,
ManagedIdentityType,
ConfigServerState,
MonitoringSettingState,
Expand Down Expand Up @@ -195,6 +198,7 @@
'PersistentDisk',
'ProxyResource',
'RegenerateTestKeyRequestPayload',
'RequiredTraffic',
'Resource',
'ResourceSku',
'ResourceSkuCapabilities',
Expand All @@ -221,6 +225,7 @@
'OperationDetailPaged',
'ResourceSkuPaged',
'ProvisioningState',
'TrafficDirection',
'ManagedIdentityType',
'ConfigServerState',
'MonitoringSettingState',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ class ProvisioningState(str, Enum):
move_failed = "MoveFailed"


class TrafficDirection(str, Enum):

inbound = "Inbound"
outbound = "Outbound"


class ManagedIdentityType(str, Enum):

none = "None"
Expand Down
Loading