Skip to content

Commit f45b649

Browse files
author
SDK Automation
committed
Generated from ee9f2c0af7a5b9317b3196e62abd0ba47fc764c5
1 parent ab93d55 commit f45b649

File tree

15 files changed

+674
-10
lines changed

15 files changed

+674
-10
lines changed

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/_app_platform_management_client.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,22 @@ def operations(self):
206206
raise NotImplementedError("APIVersion {} is not available".format(api_version))
207207
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
208208

209+
@property
210+
def runtime_versions(self):
211+
"""Instance depends on the API version:
212+
213+
* 2019-05-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2019_05_01_preview.operations.RuntimeVersionsOperations>`
214+
* 2020-07-01: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2020_07_01.operations.RuntimeVersionsOperations>`
215+
"""
216+
api_version = self._get_api_version('runtime_versions')
217+
if api_version == '2019-05-01-preview':
218+
from .v2019_05_01_preview.operations import RuntimeVersionsOperations as OperationClass
219+
elif api_version == '2020-07-01':
220+
from .v2020_07_01.operations import RuntimeVersionsOperations as OperationClass
221+
else:
222+
raise NotImplementedError("APIVersion {} is not available".format(api_version))
223+
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
224+
209225
@property
210226
def services(self):
211227
"""Instance depends on the API version:

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2019_05_01_preview/_app_platform_management_client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from .operations import CustomDomainsOperations
2121
from .operations import DeploymentsOperations
2222
from .operations import Operations
23+
from .operations import RuntimeVersionsOperations
2324
from .operations import SkuOperations
2425
from . import models
2526

@@ -44,6 +45,8 @@ class AppPlatformManagementClient(SDKClient):
4445
:vartype deployments: azure.mgmt.appplatform.v2019_05_01_preview.operations.DeploymentsOperations
4546
:ivar operations: Operations operations
4647
:vartype operations: azure.mgmt.appplatform.v2019_05_01_preview.operations.Operations
48+
:ivar runtime_versions: RuntimeVersions operations
49+
:vartype runtime_versions: azure.mgmt.appplatform.v2019_05_01_preview.operations.RuntimeVersionsOperations
4750
:ivar sku: Sku operations
4851
:vartype sku: azure.mgmt.appplatform.v2019_05_01_preview.operations.SkuOperations
4952
@@ -82,5 +85,7 @@ def __init__(
8285
self._client, self.config, self._serialize, self._deserialize)
8386
self.operations = Operations(
8487
self._client, self.config, self._serialize, self._deserialize)
88+
self.runtime_versions = RuntimeVersionsOperations(
89+
self._client, self.config, self._serialize, self._deserialize)
8590
self.sku = SkuOperations(
8691
self._client, self.config, self._serialize, self._deserialize)

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2019_05_01_preview/models/__init__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
try:
1313
from ._models_py3 import AppResource
1414
from ._models_py3 import AppResourceProperties
15+
from ._models_py3 import AvailableRuntimeVersions
1516
from ._models_py3 import BindingResource
1617
from ._models_py3 import BindingResourceProperties
1718
from ._models_py3 import CertificateProperties
@@ -38,6 +39,7 @@
3839
from ._models_py3 import NameAvailability
3940
from ._models_py3 import NameAvailabilityParameters
4041
from ._models_py3 import NetworkProfile
42+
from ._models_py3 import NetworkProfileOutboundIPs
4143
from ._models_py3 import OperationDetail
4244
from ._models_py3 import OperationDisplay
4345
from ._models_py3 import OperationProperties
@@ -56,6 +58,7 @@
5658
from ._models_py3 import ServiceSpecification
5759
from ._models_py3 import Sku
5860
from ._models_py3 import SkuCapacity
61+
from ._models_py3 import SupportedRuntimeVersion
5962
from ._models_py3 import TemporaryDisk
6063
from ._models_py3 import TestKeys
6164
from ._models_py3 import TraceProperties
@@ -64,6 +67,7 @@
6467
except (SyntaxError, ImportError):
6568
from ._models import AppResource
6669
from ._models import AppResourceProperties
70+
from ._models import AvailableRuntimeVersions
6771
from ._models import BindingResource
6872
from ._models import BindingResourceProperties
6973
from ._models import CertificateProperties
@@ -90,6 +94,7 @@
9094
from ._models import NameAvailability
9195
from ._models import NameAvailabilityParameters
9296
from ._models import NetworkProfile
97+
from ._models import NetworkProfileOutboundIPs
9398
from ._models import OperationDetail
9499
from ._models import OperationDisplay
95100
from ._models import OperationProperties
@@ -108,6 +113,7 @@
108113
from ._models import ServiceSpecification
109114
from ._models import Sku
110115
from ._models import SkuCapacity
116+
from ._models import SupportedRuntimeVersion
111117
from ._models import TemporaryDisk
112118
from ._models import TestKeys
113119
from ._models import TraceProperties
@@ -135,11 +141,14 @@
135141
SkuScaleType,
136142
ResourceSkuRestrictionsType,
137143
ResourceSkuRestrictionsReasonCode,
144+
SupportedRuntimeValue,
145+
SupportedRuntimePlatform,
138146
)
139147

140148
__all__ = [
141149
'AppResource',
142150
'AppResourceProperties',
151+
'AvailableRuntimeVersions',
143152
'BindingResource',
144153
'BindingResourceProperties',
145154
'CertificateProperties',
@@ -166,6 +175,7 @@
166175
'NameAvailability',
167176
'NameAvailabilityParameters',
168177
'NetworkProfile',
178+
'NetworkProfileOutboundIPs',
169179
'OperationDetail',
170180
'OperationDisplay',
171181
'OperationProperties',
@@ -184,6 +194,7 @@
184194
'ServiceSpecification',
185195
'Sku',
186196
'SkuCapacity',
197+
'SupportedRuntimeVersion',
187198
'TemporaryDisk',
188199
'TestKeys',
189200
'TraceProperties',
@@ -210,4 +221,6 @@
210221
'SkuScaleType',
211222
'ResourceSkuRestrictionsType',
212223
'ResourceSkuRestrictionsReasonCode',
224+
'SupportedRuntimeValue',
225+
'SupportedRuntimePlatform',
213226
]

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2019_05_01_preview/models/_app_platform_management_client_enums.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,15 @@ class AppResourceProvisioningState(str, Enum):
6767
class UserSourceType(str, Enum):
6868

6969
jar = "Jar"
70+
net_core_zip = "NetCoreZip"
7071
source = "Source"
7172

7273

7374
class RuntimeVersion(str, Enum):
7475

7576
java_8 = "Java_8"
7677
java_11 = "Java_11"
78+
net_core_31 = "NetCore_31"
7779

7880

7981
class DeploymentResourceProvisioningState(str, Enum):
@@ -112,3 +114,16 @@ class ResourceSkuRestrictionsReasonCode(str, Enum):
112114

113115
quota_id = "QuotaId"
114116
not_available_for_subscription = "NotAvailableForSubscription"
117+
118+
119+
class SupportedRuntimeValue(str, Enum):
120+
121+
java_8 = "Java_8"
122+
java_11 = "Java_11"
123+
net_core_31 = "NetCore_31"
124+
125+
126+
class SupportedRuntimePlatform(str, Enum):
127+
128+
java = "Java"
129+
net_core = ".NET Core"

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2019_05_01_preview/models/_models.py

Lines changed: 100 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,30 @@ def __init__(self, **kwargs):
183183
self.persistent_disk = kwargs.get('persistent_disk', None)
184184

185185

186+
class AvailableRuntimeVersions(Model):
187+
"""AvailableRuntimeVersions.
188+
189+
Variables are only populated by the server, and will be ignored when
190+
sending a request.
191+
192+
:ivar value: A list of all supported runtime versions.
193+
:vartype value:
194+
list[~azure.mgmt.appplatform.v2019_05_01_preview.models.SupportedRuntimeVersion]
195+
"""
196+
197+
_validation = {
198+
'value': {'readonly': True},
199+
}
200+
201+
_attribute_map = {
202+
'value': {'key': 'value', 'type': '[SupportedRuntimeVersion]'},
203+
}
204+
205+
def __init__(self, **kwargs):
206+
super(AvailableRuntimeVersions, self).__init__(**kwargs)
207+
self.value = None
208+
209+
186210
class BindingResource(ProxyResource):
187211
"""Binding resource payload.
188212
@@ -725,20 +749,24 @@ class DeploymentInstance(Model):
725749
:vartype reason: str
726750
:ivar discovery_status: Discovery status of the deployment instance
727751
:vartype discovery_status: str
752+
:ivar start_time: Start time of the deployment instance
753+
:vartype start_time: str
728754
"""
729755

730756
_validation = {
731757
'name': {'readonly': True},
732758
'status': {'readonly': True},
733759
'reason': {'readonly': True},
734760
'discovery_status': {'readonly': True},
761+
'start_time': {'readonly': True},
735762
}
736763

737764
_attribute_map = {
738765
'name': {'key': 'name', 'type': 'str'},
739766
'status': {'key': 'status', 'type': 'str'},
740767
'reason': {'key': 'reason', 'type': 'str'},
741768
'discovery_status': {'key': 'discoveryStatus', 'type': 'str'},
769+
'start_time': {'key': 'startTime', 'type': 'str'},
742770
}
743771

744772
def __init__(self, **kwargs):
@@ -747,6 +775,7 @@ def __init__(self, **kwargs):
747775
self.status = None
748776
self.reason = None
749777
self.discovery_status = None
778+
self.start_time = None
750779

751780

752781
class DeploymentResource(ProxyResource):
@@ -859,13 +888,16 @@ class DeploymentSettings(Model):
859888
:type memory_in_gb: int
860889
:param jvm_options: JVM parameter
861890
:type jvm_options: str
891+
:param net_core_main_entry_path: The path to the .NET executable relative
892+
to zip root
893+
:type net_core_main_entry_path: str
862894
:param instance_count: Instance count, basic tier should be in range (1,
863895
25), standard tier should be in range (1, 500). Default value: 1 .
864896
:type instance_count: int
865897
:param environment_variables: Collection of environment variables
866898
:type environment_variables: dict[str, str]
867899
:param runtime_version: Runtime version. Possible values include:
868-
'Java_8', 'Java_11'
900+
'Java_8', 'Java_11', 'NetCore_31'
869901
:type runtime_version: str or
870902
~azure.mgmt.appplatform.v2019_05_01_preview.models.RuntimeVersion
871903
"""
@@ -874,6 +906,7 @@ class DeploymentSettings(Model):
874906
'cpu': {'key': 'cpu', 'type': 'int'},
875907
'memory_in_gb': {'key': 'memoryInGB', 'type': 'int'},
876908
'jvm_options': {'key': 'jvmOptions', 'type': 'str'},
909+
'net_core_main_entry_path': {'key': 'netCoreMainEntryPath', 'type': 'str'},
877910
'instance_count': {'key': 'instanceCount', 'type': 'int'},
878911
'environment_variables': {'key': 'environmentVariables', 'type': '{str}'},
879912
'runtime_version': {'key': 'runtimeVersion', 'type': 'str'},
@@ -884,6 +917,7 @@ def __init__(self, **kwargs):
884917
self.cpu = kwargs.get('cpu', 1)
885918
self.memory_in_gb = kwargs.get('memory_in_gb', 1)
886919
self.jvm_options = kwargs.get('jvm_options', None)
920+
self.net_core_main_entry_path = kwargs.get('net_core_main_entry_path', None)
887921
self.instance_count = kwargs.get('instance_count', 1)
888922
self.environment_variables = kwargs.get('environment_variables', None)
889923
self.runtime_version = kwargs.get('runtime_version', None)
@@ -1174,6 +1208,9 @@ def __init__(self, **kwargs):
11741208
class NetworkProfile(Model):
11751209
"""Service network profile payload.
11761210
1211+
Variables are only populated by the server, and will be ignored when
1212+
sending a request.
1213+
11771214
:param service_runtime_subnet_id: Fully qualified resource Id of the
11781215
subnet to host Azure Spring Cloud Service Runtime
11791216
:type service_runtime_subnet_id: str
@@ -1188,14 +1225,23 @@ class NetworkProfile(Model):
11881225
:param app_network_resource_group: Name of the resource group containing
11891226
network resources of Azure Spring Cloud Apps
11901227
:type app_network_resource_group: str
1228+
:ivar outbound_ips: Desired outbound IP resources for Azure Spring Cloud
1229+
instance.
1230+
:vartype outbound_ips:
1231+
~azure.mgmt.appplatform.v2019_05_01_preview.models.NetworkProfileOutboundIPs
11911232
"""
11921233

1234+
_validation = {
1235+
'outbound_ips': {'readonly': True},
1236+
}
1237+
11931238
_attribute_map = {
11941239
'service_runtime_subnet_id': {'key': 'serviceRuntimeSubnetId', 'type': 'str'},
11951240
'app_subnet_id': {'key': 'appSubnetId', 'type': 'str'},
11961241
'service_cidr': {'key': 'serviceCidr', 'type': 'str'},
11971242
'service_runtime_network_resource_group': {'key': 'serviceRuntimeNetworkResourceGroup', 'type': 'str'},
11981243
'app_network_resource_group': {'key': 'appNetworkResourceGroup', 'type': 'str'},
1244+
'outbound_ips': {'key': 'outboundIPs', 'type': 'NetworkProfileOutboundIPs'},
11991245
}
12001246

12011247
def __init__(self, **kwargs):
@@ -1205,6 +1251,30 @@ def __init__(self, **kwargs):
12051251
self.service_cidr = kwargs.get('service_cidr', None)
12061252
self.service_runtime_network_resource_group = kwargs.get('service_runtime_network_resource_group', None)
12071253
self.app_network_resource_group = kwargs.get('app_network_resource_group', None)
1254+
self.outbound_ips = None
1255+
1256+
1257+
class NetworkProfileOutboundIPs(Model):
1258+
"""Desired outbound IP resources for Azure Spring Cloud instance.
1259+
1260+
Variables are only populated by the server, and will be ignored when
1261+
sending a request.
1262+
1263+
:ivar public_ips: A list of public IP addresses.
1264+
:vartype public_ips: list[str]
1265+
"""
1266+
1267+
_validation = {
1268+
'public_ips': {'readonly': True},
1269+
}
1270+
1271+
_attribute_map = {
1272+
'public_ips': {'key': 'publicIPs', 'type': '[str]'},
1273+
}
1274+
1275+
def __init__(self, **kwargs):
1276+
super(NetworkProfileOutboundIPs, self).__init__(**kwargs)
1277+
self.public_ips = None
12081278

12091279

12101280
class OperationDetail(Model):
@@ -1702,6 +1772,34 @@ def __init__(self, **kwargs):
17021772
self.scale_type = kwargs.get('scale_type', None)
17031773

17041774

1775+
class SupportedRuntimeVersion(Model):
1776+
"""Supported deployment runtime version descriptor.
1777+
1778+
:param value: The raw value which could be passed to deployment CRUD
1779+
operations. Possible values include: 'Java_8', 'Java_11', 'NetCore_31'
1780+
:type value: str or
1781+
~azure.mgmt.appplatform.v2019_05_01_preview.models.SupportedRuntimeValue
1782+
:param platform: The platform of this runtime version (possible values:
1783+
"Java" or ".NET"). Possible values include: 'Java', '.NET Core'
1784+
:type platform: str or
1785+
~azure.mgmt.appplatform.v2019_05_01_preview.models.SupportedRuntimePlatform
1786+
:param version: The detailed version (major.minor) of the platform.
1787+
:type version: str
1788+
"""
1789+
1790+
_attribute_map = {
1791+
'value': {'key': 'value', 'type': 'str'},
1792+
'platform': {'key': 'platform', 'type': 'str'},
1793+
'version': {'key': 'version', 'type': 'str'},
1794+
}
1795+
1796+
def __init__(self, **kwargs):
1797+
super(SupportedRuntimeVersion, self).__init__(**kwargs)
1798+
self.value = kwargs.get('value', None)
1799+
self.platform = kwargs.get('platform', None)
1800+
self.version = kwargs.get('version', None)
1801+
1802+
17051803
class TemporaryDisk(Model):
17061804
"""Temporary disk payload.
17071805
@@ -1800,7 +1898,7 @@ class UserSourceInfo(Model):
18001898
"""Source information for a deployment.
18011899
18021900
:param type: Type of the source uploaded. Possible values include: 'Jar',
1803-
'Source'
1901+
'NetCoreZip', 'Source'
18041902
:type type: str or
18051903
~azure.mgmt.appplatform.v2019_05_01_preview.models.UserSourceType
18061904
:param relative_path: Relative path of the storage which stores the source

0 commit comments

Comments
 (0)