Skip to content

Commit 73315fe

Browse files
zhangyan133SDKAutoYan Zhang (WICRESOFT NORTH AMERICA LTD)00Kai0
authored
T1 appplatform 2021 02 24 (#16896)
* CodeGen from PR 12282 in Azure/azure-rest-api-specs add app attribute enable end to end tls (#12282) * add new app attribute enableEndToEndTLS in preview versions * revert changes on old version 2019-05-01-preview * wording * test,version,CHANGELOG * fix test Co-authored-by: SDKAuto <[email protected]> Co-authored-by: Yan Zhang (WICRESOFT NORTH AMERICA LTD) <[email protected]> Co-authored-by: 00Kai0 <[email protected]>
1 parent ac0820a commit 73315fe

File tree

8 files changed

+859
-7264
lines changed

8 files changed

+859
-7264
lines changed

sdk/appplatform/azure-mgmt-appplatform/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release History
22

3+
## 1.2.0 (2021-02-24)
4+
5+
**Features**
6+
7+
- Model AppResourceProperties has a new parameter enable_end_to_end_tls
8+
39
## 1.1.0 (2021-01-04)
410

511
**Features**

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

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,17 @@ def models(cls, api_version=DEFAULT_API_VERSION):
7575
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>`
78+
* 2020-11-01-preview: :mod:`v2020_11_01_preview.models<azure.mgmt.appplatform.v2020_11_01_preview.models>`
7879
"""
7980
if api_version == '2019-05-01-preview':
8081
from .v2019_05_01_preview import models
8182
return models
8283
elif api_version == '2020-07-01':
8384
from .v2020_07_01 import models
8485
return models
86+
elif api_version == '2020-11-01-preview':
87+
from .v2020_11_01_preview import models
88+
return models
8589
raise NotImplementedError("APIVersion {} is not available".format(api_version))
8690

8791
@property
@@ -90,12 +94,15 @@ def apps(self):
9094
9195
* 2019-05-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2019_05_01_preview.operations.AppsOperations>`
9296
* 2020-07-01: :class:`AppsOperations<azure.mgmt.appplatform.v2020_07_01.operations.AppsOperations>`
97+
* 2020-11-01-preview: :class:`AppsOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.AppsOperations>`
9398
"""
9499
api_version = self._get_api_version('apps')
95100
if api_version == '2019-05-01-preview':
96101
from .v2019_05_01_preview.operations import AppsOperations as OperationClass
97102
elif api_version == '2020-07-01':
98103
from .v2020_07_01.operations import AppsOperations as OperationClass
104+
elif api_version == '2020-11-01-preview':
105+
from .v2020_11_01_preview.operations import AppsOperations as OperationClass
99106
else:
100107
raise NotImplementedError("APIVersion {} is not available".format(api_version))
101108
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -106,12 +113,15 @@ def bindings(self):
106113
107114
* 2019-05-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2019_05_01_preview.operations.BindingsOperations>`
108115
* 2020-07-01: :class:`BindingsOperations<azure.mgmt.appplatform.v2020_07_01.operations.BindingsOperations>`
116+
* 2020-11-01-preview: :class:`BindingsOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.BindingsOperations>`
109117
"""
110118
api_version = self._get_api_version('bindings')
111119
if api_version == '2019-05-01-preview':
112120
from .v2019_05_01_preview.operations import BindingsOperations as OperationClass
113121
elif api_version == '2020-07-01':
114122
from .v2020_07_01.operations import BindingsOperations as OperationClass
123+
elif api_version == '2020-11-01-preview':
124+
from .v2020_11_01_preview.operations import BindingsOperations as OperationClass
115125
else:
116126
raise NotImplementedError("APIVersion {} is not available".format(api_version))
117127
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -122,12 +132,15 @@ def certificates(self):
122132
123133
* 2019-05-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2019_05_01_preview.operations.CertificatesOperations>`
124134
* 2020-07-01: :class:`CertificatesOperations<azure.mgmt.appplatform.v2020_07_01.operations.CertificatesOperations>`
135+
* 2020-11-01-preview: :class:`CertificatesOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.CertificatesOperations>`
125136
"""
126137
api_version = self._get_api_version('certificates')
127138
if api_version == '2019-05-01-preview':
128139
from .v2019_05_01_preview.operations import CertificatesOperations as OperationClass
129140
elif api_version == '2020-07-01':
130141
from .v2020_07_01.operations import CertificatesOperations as OperationClass
142+
elif api_version == '2020-11-01-preview':
143+
from .v2020_11_01_preview.operations import CertificatesOperations as OperationClass
131144
else:
132145
raise NotImplementedError("APIVersion {} is not available".format(api_version))
133146
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -137,10 +150,13 @@ def config_servers(self):
137150
"""Instance depends on the API version:
138151
139152
* 2020-07-01: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2020_07_01.operations.ConfigServersOperations>`
153+
* 2020-11-01-preview: :class:`ConfigServersOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.ConfigServersOperations>`
140154
"""
141155
api_version = self._get_api_version('config_servers')
142156
if api_version == '2020-07-01':
143157
from .v2020_07_01.operations import ConfigServersOperations as OperationClass
158+
elif api_version == '2020-11-01-preview':
159+
from .v2020_11_01_preview.operations import ConfigServersOperations as OperationClass
144160
else:
145161
raise NotImplementedError("APIVersion {} is not available".format(api_version))
146162
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -151,12 +167,15 @@ def custom_domains(self):
151167
152168
* 2019-05-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2019_05_01_preview.operations.CustomDomainsOperations>`
153169
* 2020-07-01: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2020_07_01.operations.CustomDomainsOperations>`
170+
* 2020-11-01-preview: :class:`CustomDomainsOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.CustomDomainsOperations>`
154171
"""
155172
api_version = self._get_api_version('custom_domains')
156173
if api_version == '2019-05-01-preview':
157174
from .v2019_05_01_preview.operations import CustomDomainsOperations as OperationClass
158175
elif api_version == '2020-07-01':
159176
from .v2020_07_01.operations import CustomDomainsOperations as OperationClass
177+
elif api_version == '2020-11-01-preview':
178+
from .v2020_11_01_preview.operations import CustomDomainsOperations as OperationClass
160179
else:
161180
raise NotImplementedError("APIVersion {} is not available".format(api_version))
162181
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -167,12 +186,15 @@ def deployments(self):
167186
168187
* 2019-05-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2019_05_01_preview.operations.DeploymentsOperations>`
169188
* 2020-07-01: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2020_07_01.operations.DeploymentsOperations>`
189+
* 2020-11-01-preview: :class:`DeploymentsOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.DeploymentsOperations>`
170190
"""
171191
api_version = self._get_api_version('deployments')
172192
if api_version == '2019-05-01-preview':
173193
from .v2019_05_01_preview.operations import DeploymentsOperations as OperationClass
174194
elif api_version == '2020-07-01':
175195
from .v2020_07_01.operations import DeploymentsOperations as OperationClass
196+
elif api_version == '2020-11-01-preview':
197+
from .v2020_11_01_preview.operations import DeploymentsOperations as OperationClass
176198
else:
177199
raise NotImplementedError("APIVersion {} is not available".format(api_version))
178200
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -182,10 +204,13 @@ def monitoring_settings(self):
182204
"""Instance depends on the API version:
183205
184206
* 2020-07-01: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2020_07_01.operations.MonitoringSettingsOperations>`
207+
* 2020-11-01-preview: :class:`MonitoringSettingsOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.MonitoringSettingsOperations>`
185208
"""
186209
api_version = self._get_api_version('monitoring_settings')
187210
if api_version == '2020-07-01':
188211
from .v2020_07_01.operations import MonitoringSettingsOperations as OperationClass
212+
elif api_version == '2020-11-01-preview':
213+
from .v2020_11_01_preview.operations import MonitoringSettingsOperations as OperationClass
189214
else:
190215
raise NotImplementedError("APIVersion {} is not available".format(api_version))
191216
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -196,12 +221,34 @@ def operations(self):
196221
197222
* 2019-05-01-preview: :class:`Operations<azure.mgmt.appplatform.v2019_05_01_preview.operations.Operations>`
198223
* 2020-07-01: :class:`Operations<azure.mgmt.appplatform.v2020_07_01.operations.Operations>`
224+
* 2020-11-01-preview: :class:`Operations<azure.mgmt.appplatform.v2020_11_01_preview.operations.Operations>`
199225
"""
200226
api_version = self._get_api_version('operations')
201227
if api_version == '2019-05-01-preview':
202228
from .v2019_05_01_preview.operations import Operations as OperationClass
203229
elif api_version == '2020-07-01':
204230
from .v2020_07_01.operations import Operations as OperationClass
231+
elif api_version == '2020-11-01-preview':
232+
from .v2020_11_01_preview.operations import Operations as OperationClass
233+
else:
234+
raise NotImplementedError("APIVersion {} is not available".format(api_version))
235+
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
236+
237+
@property
238+
def runtime_versions(self):
239+
"""Instance depends on the API version:
240+
241+
* 2019-05-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2019_05_01_preview.operations.RuntimeVersionsOperations>`
242+
* 2020-07-01: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2020_07_01.operations.RuntimeVersionsOperations>`
243+
* 2020-11-01-preview: :class:`RuntimeVersionsOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.RuntimeVersionsOperations>`
244+
"""
245+
api_version = self._get_api_version('runtime_versions')
246+
if api_version == '2019-05-01-preview':
247+
from .v2019_05_01_preview.operations import RuntimeVersionsOperations as OperationClass
248+
elif api_version == '2020-07-01':
249+
from .v2020_07_01.operations import RuntimeVersionsOperations as OperationClass
250+
elif api_version == '2020-11-01-preview':
251+
from .v2020_11_01_preview.operations import RuntimeVersionsOperations as OperationClass
205252
else:
206253
raise NotImplementedError("APIVersion {} is not available".format(api_version))
207254
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -212,12 +259,15 @@ def services(self):
212259
213260
* 2019-05-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2019_05_01_preview.operations.ServicesOperations>`
214261
* 2020-07-01: :class:`ServicesOperations<azure.mgmt.appplatform.v2020_07_01.operations.ServicesOperations>`
262+
* 2020-11-01-preview: :class:`ServicesOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.ServicesOperations>`
215263
"""
216264
api_version = self._get_api_version('services')
217265
if api_version == '2019-05-01-preview':
218266
from .v2019_05_01_preview.operations import ServicesOperations as OperationClass
219267
elif api_version == '2020-07-01':
220268
from .v2020_07_01.operations import ServicesOperations as OperationClass
269+
elif api_version == '2020-11-01-preview':
270+
from .v2020_11_01_preview.operations import ServicesOperations as OperationClass
221271
else:
222272
raise NotImplementedError("APIVersion {} is not available".format(api_version))
223273
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -240,10 +290,13 @@ def skus(self):
240290
"""Instance depends on the API version:
241291
242292
* 2020-07-01: :class:`SkusOperations<azure.mgmt.appplatform.v2020_07_01.operations.SkusOperations>`
293+
* 2020-11-01-preview: :class:`SkusOperations<azure.mgmt.appplatform.v2020_11_01_preview.operations.SkusOperations>`
243294
"""
244295
api_version = self._get_api_version('skus')
245296
if api_version == '2020-07-01':
246297
from .v2020_07_01.operations import SkusOperations as OperationClass
298+
elif api_version == '2020-11-01-preview':
299+
from .v2020_11_01_preview.operations import SkusOperations as OperationClass
247300
else:
248301
raise NotImplementedError("APIVersion {} is not available".format(api_version))
249302
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/v2020_11_01_preview/models/_models.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ class AppResourceProperties(Model):
165165
:type fqdn: str
166166
:param https_only: Indicate if only https is allowed.
167167
:type https_only: bool
168+
:param enable_end_to_end_tls: Indicate if end to end TLS is enabled.
169+
:type enable_end_to_end_tls: bool
168170
:ivar created_time: Date time when the resource is created
169171
:vartype created_time: datetime
170172
:param temporary_disk: Temporary disk settings
@@ -188,6 +190,7 @@ class AppResourceProperties(Model):
188190
'active_deployment_name': {'key': 'activeDeploymentName', 'type': 'str'},
189191
'fqdn': {'key': 'fqdn', 'type': 'str'},
190192
'https_only': {'key': 'httpsOnly', 'type': 'bool'},
193+
'enable_end_to_end_tls': {'key': 'enableEndToEndTLS', 'type': 'bool'},
191194
'created_time': {'key': 'createdTime', 'type': 'iso-8601'},
192195
'temporary_disk': {'key': 'temporaryDisk', 'type': 'TemporaryDisk'},
193196
'persistent_disk': {'key': 'persistentDisk', 'type': 'PersistentDisk'},
@@ -201,6 +204,7 @@ def __init__(self, **kwargs):
201204
self.active_deployment_name = kwargs.get('active_deployment_name', None)
202205
self.fqdn = kwargs.get('fqdn', None)
203206
self.https_only = kwargs.get('https_only', None)
207+
self.enable_end_to_end_tls = kwargs.get('enable_end_to_end_tls', None)
204208
self.created_time = None
205209
self.temporary_disk = kwargs.get('temporary_disk', None)
206210
self.persistent_disk = kwargs.get('persistent_disk', None)

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2020_11_01_preview/models/_models_py3.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ class AppResourceProperties(Model):
165165
:type fqdn: str
166166
:param https_only: Indicate if only https is allowed.
167167
:type https_only: bool
168+
:param enable_end_to_end_tls: Indicate if end to end TLS is enabled.
169+
:type enable_end_to_end_tls: bool
168170
:ivar created_time: Date time when the resource is created
169171
:vartype created_time: datetime
170172
:param temporary_disk: Temporary disk settings
@@ -188,19 +190,21 @@ class AppResourceProperties(Model):
188190
'active_deployment_name': {'key': 'activeDeploymentName', 'type': 'str'},
189191
'fqdn': {'key': 'fqdn', 'type': 'str'},
190192
'https_only': {'key': 'httpsOnly', 'type': 'bool'},
193+
'enable_end_to_end_tls': {'key': 'enableEndToEndTLS', 'type': 'bool'},
191194
'created_time': {'key': 'createdTime', 'type': 'iso-8601'},
192195
'temporary_disk': {'key': 'temporaryDisk', 'type': 'TemporaryDisk'},
193196
'persistent_disk': {'key': 'persistentDisk', 'type': 'PersistentDisk'},
194197
}
195198

196-
def __init__(self, *, public: bool=None, active_deployment_name: str=None, fqdn: str=None, https_only: bool=None, temporary_disk=None, persistent_disk=None, **kwargs) -> None:
199+
def __init__(self, *, public: bool=None, active_deployment_name: str=None, fqdn: str=None, https_only: bool=None, enable_end_to_end_tls: bool=None, temporary_disk=None, persistent_disk=None, **kwargs) -> None:
197200
super(AppResourceProperties, self).__init__(**kwargs)
198201
self.public = public
199202
self.url = None
200203
self.provisioning_state = None
201204
self.active_deployment_name = active_deployment_name
202205
self.fqdn = fqdn
203206
self.https_only = https_only
207+
self.enable_end_to_end_tls = enable_end_to_end_tls
204208
self.created_time = None
205209
self.temporary_disk = temporary_disk
206210
self.persistent_disk = persistent_disk

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
VERSION = "1.1.0"
12+
VERSION = "1.2.0"
1313

0 commit comments

Comments
 (0)