Skip to content

Commit 5fea279

Browse files
author
SDKAuto
committed
CodeGen from PR 14301 in Azure/azure-rest-api-specs
Merge dcc797ba0d736dfd71a0c71f74f8d26fe58fed7b into a80c025
1 parent 8dd26ca commit 5fea279

34 files changed

+10221
-23
lines changed

sdk/appplatform/azure-mgmt-appplatform/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include _meta.json
12
recursive-include tests *.py *.yaml
23
include *.md
34
include azure/__init__.py
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"autorest": "V2",
3+
"use": "@microsoft.azure/autorest.python@~4.0.71",
4+
"commit": "08ffe1a0377dfe4772e5cc04eb64cf647f14a3ed",
5+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6+
"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",
7+
"readme": "specification/appplatform/resource-manager/readme.md"
8+
}

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

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
7676
* 2019-05-01-preview: :mod:`v2019_05_01_preview.models<azure.mgmt.appplatform.v2019_05_01_preview.models>`
7777
* 2020-07-01: :mod:`v2020_07_01.models<azure.mgmt.appplatform.v2020_07_01.models>`
7878
* 2020-11-01-preview: :mod:`v2020_11_01_preview.models<azure.mgmt.appplatform.v2020_11_01_preview.models>`
79+
* 2021-06-01-preview: :mod:`v2021_06_01_preview.models<azure.mgmt.appplatform.v2021_06_01_preview.models>`
7980
"""
8081
if api_version == '2019-05-01-preview':
8182
from .v2019_05_01_preview import models
@@ -86,6 +87,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
8687
elif api_version == '2020-11-01-preview':
8788
from .v2020_11_01_preview import models
8889
return models
90+
elif api_version == '2021-06-01-preview':
91+
from .v2021_06_01_preview import models
92+
return models
8993
raise NotImplementedError("APIVersion {} is not available".format(api_version))
9094

9195
@property
@@ -95,6 +99,7 @@ def apps(self):
9599
* 2019-05-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2019_05_01_preview.operations.AppsOperations>`
96100
* 2020-07-01: :class:`AppsOperations<azure.mgmt.appplatform.v2020_07_01.operations.AppsOperations>`
97101
* 2020-11-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.AppsOperations>`
102+
* 2021-06-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.AppsOperations>`
98103
"""
99104
api_version = self._get_api_version('apps')
100105
if api_version == '2019-05-01-preview':
@@ -103,6 +108,8 @@ def apps(self):
103108
from .v2020_07_01.operations import AppsOperations as OperationClass
104109
elif api_version == '2020-11-01-preview':
105110
from .v2020_11_01_preview.operations import AppsOperations as OperationClass
111+
elif api_version == '2021-06-01-preview':
112+
from .v2021_06_01_preview.operations import AppsOperations as OperationClass
106113
else:
107114
raise NotImplementedError("APIVersion {} is not available".format(api_version))
108115
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -114,6 +121,7 @@ def bindings(self):
114121
* 2019-05-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2019_05_01_preview.operations.BindingsOperations>`
115122
* 2020-07-01: :class:`BindingsOperations<azure.mgmt.appplatform.v2020_07_01.operations.BindingsOperations>`
116123
* 2020-11-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.BindingsOperations>`
124+
* 2021-06-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.BindingsOperations>`
117125
"""
118126
api_version = self._get_api_version('bindings')
119127
if api_version == '2019-05-01-preview':
@@ -122,6 +130,8 @@ def bindings(self):
122130
from .v2020_07_01.operations import BindingsOperations as OperationClass
123131
elif api_version == '2020-11-01-preview':
124132
from .v2020_11_01_preview.operations import BindingsOperations as OperationClass
133+
elif api_version == '2021-06-01-preview':
134+
from .v2021_06_01_preview.operations import BindingsOperations as OperationClass
125135
else:
126136
raise NotImplementedError("APIVersion {} is not available".format(api_version))
127137
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -133,6 +143,7 @@ def certificates(self):
133143
* 2019-05-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2019_05_01_preview.operations.CertificatesOperations>`
134144
* 2020-07-01: :class:`CertificatesOperations<azure.mgmt.appplatform.v2020_07_01.operations.CertificatesOperations>`
135145
* 2020-11-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.CertificatesOperations>`
146+
* 2021-06-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.CertificatesOperations>`
136147
"""
137148
api_version = self._get_api_version('certificates')
138149
if api_version == '2019-05-01-preview':
@@ -141,6 +152,8 @@ def certificates(self):
141152
from .v2020_07_01.operations import CertificatesOperations as OperationClass
142153
elif api_version == '2020-11-01-preview':
143154
from .v2020_11_01_preview.operations import CertificatesOperations as OperationClass
155+
elif api_version == '2021-06-01-preview':
156+
from .v2021_06_01_preview.operations import CertificatesOperations as OperationClass
144157
else:
145158
raise NotImplementedError("APIVersion {} is not available".format(api_version))
146159
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -151,12 +164,15 @@ def config_servers(self):
151164
152165
* 2020-07-01: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2020_07_01.operations.ConfigServersOperations>`
153166
* 2020-11-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.ConfigServersOperations>`
167+
* 2021-06-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.ConfigServersOperations>`
154168
"""
155169
api_version = self._get_api_version('config_servers')
156170
if api_version == '2020-07-01':
157171
from .v2020_07_01.operations import ConfigServersOperations as OperationClass
158172
elif api_version == '2020-11-01-preview':
159173
from .v2020_11_01_preview.operations import ConfigServersOperations as OperationClass
174+
elif api_version == '2021-06-01-preview':
175+
from .v2021_06_01_preview.operations import ConfigServersOperations as OperationClass
160176
else:
161177
raise NotImplementedError("APIVersion {} is not available".format(api_version))
162178
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -168,6 +184,7 @@ def custom_domains(self):
168184
* 2019-05-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2019_05_01_preview.operations.CustomDomainsOperations>`
169185
* 2020-07-01: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2020_07_01.operations.CustomDomainsOperations>`
170186
* 2020-11-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.CustomDomainsOperations>`
187+
* 2021-06-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.CustomDomainsOperations>`
171188
"""
172189
api_version = self._get_api_version('custom_domains')
173190
if api_version == '2019-05-01-preview':
@@ -176,6 +193,8 @@ def custom_domains(self):
176193
from .v2020_07_01.operations import CustomDomainsOperations as OperationClass
177194
elif api_version == '2020-11-01-preview':
178195
from .v2020_11_01_preview.operations import CustomDomainsOperations as OperationClass
196+
elif api_version == '2021-06-01-preview':
197+
from .v2021_06_01_preview.operations import CustomDomainsOperations as OperationClass
179198
else:
180199
raise NotImplementedError("APIVersion {} is not available".format(api_version))
181200
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -187,6 +206,7 @@ def deployments(self):
187206
* 2019-05-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2019_05_01_preview.operations.DeploymentsOperations>`
188207
* 2020-07-01: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2020_07_01.operations.DeploymentsOperations>`
189208
* 2020-11-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.DeploymentsOperations>`
209+
* 2021-06-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.DeploymentsOperations>`
190210
"""
191211
api_version = self._get_api_version('deployments')
192212
if api_version == '2019-05-01-preview':
@@ -195,6 +215,8 @@ def deployments(self):
195215
from .v2020_07_01.operations import DeploymentsOperations as OperationClass
196216
elif api_version == '2020-11-01-preview':
197217
from .v2020_11_01_preview.operations import DeploymentsOperations as OperationClass
218+
elif api_version == '2021-06-01-preview':
219+
from .v2021_06_01_preview.operations import DeploymentsOperations as OperationClass
198220
else:
199221
raise NotImplementedError("APIVersion {} is not available".format(api_version))
200222
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -205,12 +227,15 @@ def monitoring_settings(self):
205227
206228
* 2020-07-01: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2020_07_01.operations.MonitoringSettingsOperations>`
207229
* 2020-11-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.MonitoringSettingsOperations>`
230+
* 2021-06-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.MonitoringSettingsOperations>`
208231
"""
209232
api_version = self._get_api_version('monitoring_settings')
210233
if api_version == '2020-07-01':
211234
from .v2020_07_01.operations import MonitoringSettingsOperations as OperationClass
212235
elif api_version == '2020-11-01-preview':
213236
from .v2020_11_01_preview.operations import MonitoringSettingsOperations as OperationClass
237+
elif api_version == '2021-06-01-preview':
238+
from .v2021_06_01_preview.operations import MonitoringSettingsOperations as OperationClass
214239
else:
215240
raise NotImplementedError("APIVersion {} is not available".format(api_version))
216241
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -222,6 +247,7 @@ def operations(self):
222247
* 2019-05-01-preview: :class:`Operations<azure.mgmt.appplatform.v2019_05_01_preview.operations.Operations>`
223248
* 2020-07-01: :class:`Operations<azure.mgmt.appplatform.v2020_07_01.operations.Operations>`
224249
* 2020-11-01-preview: :class:`Operations<azure.mgmt.appplatform.v2020_11_01_preview.operations.Operations>`
250+
* 2021-06-01-preview: :class:`Operations<azure.mgmt.appplatform.v2021_06_01_preview.operations.Operations>`
225251
"""
226252
api_version = self._get_api_version('operations')
227253
if api_version == '2019-05-01-preview':
@@ -230,6 +256,8 @@ def operations(self):
230256
from .v2020_07_01.operations import Operations as OperationClass
231257
elif api_version == '2020-11-01-preview':
232258
from .v2020_11_01_preview.operations import Operations as OperationClass
259+
elif api_version == '2021-06-01-preview':
260+
from .v2021_06_01_preview.operations import Operations as OperationClass
233261
else:
234262
raise NotImplementedError("APIVersion {} is not available".format(api_version))
235263
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -241,6 +269,7 @@ def runtime_versions(self):
241269
* 2019-05-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2019_05_01_preview.operations.RuntimeVersionsOperations>`
242270
* 2020-07-01: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2020_07_01.operations.RuntimeVersionsOperations>`
243271
* 2020-11-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.RuntimeVersionsOperations>`
272+
* 2021-06-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.RuntimeVersionsOperations>`
244273
"""
245274
api_version = self._get_api_version('runtime_versions')
246275
if api_version == '2019-05-01-preview':
@@ -249,6 +278,8 @@ def runtime_versions(self):
249278
from .v2020_07_01.operations import RuntimeVersionsOperations as OperationClass
250279
elif api_version == '2020-11-01-preview':
251280
from .v2020_11_01_preview.operations import RuntimeVersionsOperations as OperationClass
281+
elif api_version == '2021-06-01-preview':
282+
from .v2021_06_01_preview.operations import RuntimeVersionsOperations as OperationClass
252283
else:
253284
raise NotImplementedError("APIVersion {} is not available".format(api_version))
254285
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -260,6 +291,7 @@ def services(self):
260291
* 2019-05-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2019_05_01_preview.operations.ServicesOperations>`
261292
* 2020-07-01: :class:`ServicesOperations<azure.mgmt.appplatform.v2020_07_01.operations.ServicesOperations>`
262293
* 2020-11-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.ServicesOperations>`
294+
* 2021-06-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.ServicesOperations>`
263295
"""
264296
api_version = self._get_api_version('services')
265297
if api_version == '2019-05-01-preview':
@@ -268,6 +300,8 @@ def services(self):
268300
from .v2020_07_01.operations import ServicesOperations as OperationClass
269301
elif api_version == '2020-11-01-preview':
270302
from .v2020_11_01_preview.operations import ServicesOperations as OperationClass
303+
elif api_version == '2021-06-01-preview':
304+
from .v2021_06_01_preview.operations import ServicesOperations as OperationClass
271305
else:
272306
raise NotImplementedError("APIVersion {} is not available".format(api_version))
273307
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -291,12 +325,15 @@ def skus(self):
291325
292326
* 2020-07-01: :class:`SkusOperations<azure.mgmt.appplatform.v2020_07_01.operations.SkusOperations>`
293327
* 2020-11-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.SkusOperations>`
328+
* 2021-06-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2021_06_01_preview.operations.SkusOperations>`
294329
"""
295330
api_version = self._get_api_version('skus')
296331
if api_version == '2020-07-01':
297332
from .v2020_07_01.operations import SkusOperations as OperationClass
298333
elif api_version == '2020-11-01-preview':
299334
from .v2020_11_01_preview.operations import SkusOperations as OperationClass
335+
elif api_version == '2021-06-01-preview':
336+
from .v2021_06_01_preview.operations import SkusOperations as OperationClass
300337
else:
301338
raise NotImplementedError("APIVersion {} is not available".format(api_version))
302339
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
from ._models_py3 import PersistentDisk
4747
from ._models_py3 import ProxyResource
4848
from ._models_py3 import RegenerateTestKeyRequestPayload
49+
from ._models_py3 import RequiredTraffic
4950
from ._models_py3 import Resource
5051
from ._models_py3 import ResourceSku
5152
from ._models_py3 import ResourceSkuCapabilities
@@ -101,6 +102,7 @@
101102
from ._models import PersistentDisk
102103
from ._models import ProxyResource
103104
from ._models import RegenerateTestKeyRequestPayload
105+
from ._models import RequiredTraffic
104106
from ._models import Resource
105107
from ._models import ResourceSku
106108
from ._models import ResourceSkuCapabilities
@@ -131,6 +133,7 @@
131133
ProvisioningState,
132134
ConfigServerState,
133135
TraceProxyState,
136+
TrafficDirection,
134137
ManagedIdentityType,
135138
TestKeyType,
136139
AppResourceProvisioningState,
@@ -182,6 +185,7 @@
182185
'PersistentDisk',
183186
'ProxyResource',
184187
'RegenerateTestKeyRequestPayload',
188+
'RequiredTraffic',
185189
'Resource',
186190
'ResourceSku',
187191
'ResourceSkuCapabilities',
@@ -211,6 +215,7 @@
211215
'ProvisioningState',
212216
'ConfigServerState',
213217
'TraceProxyState',
218+
'TrafficDirection',
214219
'ManagedIdentityType',
215220
'TestKeyType',
216221
'AppResourceProvisioningState',

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ class TraceProxyState(str, Enum):
4242
updating = "Updating"
4343

4444

45+
class TrafficDirection(str, Enum):
46+
47+
inbound = "Inbound"
48+
outbound = "Outbound"
49+
50+
4551
class ManagedIdentityType(str, Enum):
4652

4753
none = "None"

0 commit comments

Comments
 (0)