Skip to content

Commit aea802d

Browse files
00Kai0SDKAuto
andauthored
T1 iotcentral 2021 02 19 (Azure#16824)
* CodeGen from PR 12770 in Azure/azure-rest-api-specs add industry and locations to armTemplate API (Azure#12770) * test,version,CHANGELOG Co-authored-by: SDKAuto <[email protected]>
1 parent c081534 commit aea802d

File tree

7 files changed

+175
-65
lines changed

7 files changed

+175
-65
lines changed

sdk/iothub/azure-mgmt-iotcentral/CHANGELOG.md

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

3+
## 4.1.0 (2021-02-19)
4+
5+
**Features**
6+
7+
- Model AppTemplate has a new parameter industry
8+
- Model AppTemplate has a new parameter locations
9+
- Model Operation has a new parameter properties
10+
- Model Operation has a new parameter origin
11+
312
## 4.0.0 (2021-01-05)
413

514
**Features**

sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/models/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from ._models_py3 import AppPatch
1616
from ._models_py3 import AppSkuInfo
1717
from ._models_py3 import AppTemplate
18+
from ._models_py3 import AppTemplateLocations
1819
from ._models_py3 import CloudErrorBody
1920
from ._models_py3 import Operation
2021
from ._models_py3 import OperationDisplay
@@ -26,6 +27,7 @@
2627
from ._models import AppPatch
2728
from ._models import AppSkuInfo
2829
from ._models import AppTemplate
30+
from ._models import AppTemplateLocations
2931
from ._models import CloudErrorBody
3032
from ._models import Operation
3133
from ._models import OperationDisplay
@@ -44,6 +46,7 @@
4446
'AppPatch',
4547
'AppSkuInfo',
4648
'AppTemplate',
49+
'AppTemplateLocations',
4750
'CloudErrorBody',
4851
'Operation',
4952
'OperationDisplay',

sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/models/_models.py

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,11 @@ class AppTemplate(Model):
243243
:vartype order: float
244244
:ivar description: The description of the template.
245245
:vartype description: str
246+
:ivar industry: The industry of the template.
247+
:vartype industry: str
248+
:ivar locations: A list of locations that support the template.
249+
:vartype locations:
250+
list[~azure.mgmt.iotcentral.models.AppTemplateLocations]
246251
"""
247252

248253
_validation = {
@@ -252,6 +257,8 @@ class AppTemplate(Model):
252257
'title': {'readonly': True},
253258
'order': {'readonly': True},
254259
'description': {'readonly': True},
260+
'industry': {'readonly': True},
261+
'locations': {'readonly': True},
255262
}
256263

257264
_attribute_map = {
@@ -261,6 +268,8 @@ class AppTemplate(Model):
261268
'title': {'key': 'title', 'type': 'str'},
262269
'order': {'key': 'order', 'type': 'float'},
263270
'description': {'key': 'description', 'type': 'str'},
271+
'industry': {'key': 'industry', 'type': 'str'},
272+
'locations': {'key': 'locations', 'type': '[AppTemplateLocations]'},
264273
}
265274

266275
def __init__(self, **kwargs):
@@ -271,6 +280,36 @@ def __init__(self, **kwargs):
271280
self.title = None
272281
self.order = None
273282
self.description = None
283+
self.industry = None
284+
self.locations = None
285+
286+
287+
class AppTemplateLocations(Model):
288+
"""IoT Central Application Template Locations.
289+
290+
Variables are only populated by the server, and will be ignored when
291+
sending a request.
292+
293+
:ivar id: The ID of the location.
294+
:vartype id: str
295+
:ivar display_name: The display name of the location.
296+
:vartype display_name: str
297+
"""
298+
299+
_validation = {
300+
'id': {'readonly': True},
301+
'display_name': {'readonly': True},
302+
}
303+
304+
_attribute_map = {
305+
'id': {'key': 'id', 'type': 'str'},
306+
'display_name': {'key': 'displayName', 'type': 'str'},
307+
}
308+
309+
def __init__(self, **kwargs):
310+
super(AppTemplateLocations, self).__init__(**kwargs)
311+
self.id = None
312+
self.display_name = None
274313

275314

276315
class CloudError(Model):
@@ -370,21 +409,31 @@ class Operation(Model):
370409
:vartype name: str
371410
:param display: The object that represents the operation.
372411
:type display: ~azure.mgmt.iotcentral.models.OperationDisplay
412+
:ivar origin: The intended executor of the operation.
413+
:vartype origin: str
414+
:ivar properties: Additional descriptions for the operation.
415+
:vartype properties: object
373416
"""
374417

375418
_validation = {
376419
'name': {'readonly': True},
420+
'origin': {'readonly': True},
421+
'properties': {'readonly': True},
377422
}
378423

379424
_attribute_map = {
380425
'name': {'key': 'name', 'type': 'str'},
381426
'display': {'key': 'display', 'type': 'OperationDisplay'},
427+
'origin': {'key': 'origin', 'type': 'str'},
428+
'properties': {'key': 'properties', 'type': 'object'},
382429
}
383430

384431
def __init__(self, **kwargs):
385432
super(Operation, self).__init__(**kwargs)
386433
self.name = None
387434
self.display = kwargs.get('display', None)
435+
self.origin = None
436+
self.properties = None
388437

389438

390439
class OperationDisplay(Model):

sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/models/_models_py3.py

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,11 @@ class AppTemplate(Model):
243243
:vartype order: float
244244
:ivar description: The description of the template.
245245
:vartype description: str
246+
:ivar industry: The industry of the template.
247+
:vartype industry: str
248+
:ivar locations: A list of locations that support the template.
249+
:vartype locations:
250+
list[~azure.mgmt.iotcentral.models.AppTemplateLocations]
246251
"""
247252

248253
_validation = {
@@ -252,6 +257,8 @@ class AppTemplate(Model):
252257
'title': {'readonly': True},
253258
'order': {'readonly': True},
254259
'description': {'readonly': True},
260+
'industry': {'readonly': True},
261+
'locations': {'readonly': True},
255262
}
256263

257264
_attribute_map = {
@@ -261,6 +268,8 @@ class AppTemplate(Model):
261268
'title': {'key': 'title', 'type': 'str'},
262269
'order': {'key': 'order', 'type': 'float'},
263270
'description': {'key': 'description', 'type': 'str'},
271+
'industry': {'key': 'industry', 'type': 'str'},
272+
'locations': {'key': 'locations', 'type': '[AppTemplateLocations]'},
264273
}
265274

266275
def __init__(self, **kwargs) -> None:
@@ -271,6 +280,36 @@ def __init__(self, **kwargs) -> None:
271280
self.title = None
272281
self.order = None
273282
self.description = None
283+
self.industry = None
284+
self.locations = None
285+
286+
287+
class AppTemplateLocations(Model):
288+
"""IoT Central Application Template Locations.
289+
290+
Variables are only populated by the server, and will be ignored when
291+
sending a request.
292+
293+
:ivar id: The ID of the location.
294+
:vartype id: str
295+
:ivar display_name: The display name of the location.
296+
:vartype display_name: str
297+
"""
298+
299+
_validation = {
300+
'id': {'readonly': True},
301+
'display_name': {'readonly': True},
302+
}
303+
304+
_attribute_map = {
305+
'id': {'key': 'id', 'type': 'str'},
306+
'display_name': {'key': 'displayName', 'type': 'str'},
307+
}
308+
309+
def __init__(self, **kwargs) -> None:
310+
super(AppTemplateLocations, self).__init__(**kwargs)
311+
self.id = None
312+
self.display_name = None
274313

275314

276315
class CloudError(Model):
@@ -370,21 +409,31 @@ class Operation(Model):
370409
:vartype name: str
371410
:param display: The object that represents the operation.
372411
:type display: ~azure.mgmt.iotcentral.models.OperationDisplay
412+
:ivar origin: The intended executor of the operation.
413+
:vartype origin: str
414+
:ivar properties: Additional descriptions for the operation.
415+
:vartype properties: object
373416
"""
374417

375418
_validation = {
376419
'name': {'readonly': True},
420+
'origin': {'readonly': True},
421+
'properties': {'readonly': True},
377422
}
378423

379424
_attribute_map = {
380425
'name': {'key': 'name', 'type': 'str'},
381426
'display': {'key': 'display', 'type': 'OperationDisplay'},
427+
'origin': {'key': 'origin', 'type': 'str'},
428+
'properties': {'key': 'properties', 'type': 'object'},
382429
}
383430

384431
def __init__(self, *, display=None, **kwargs) -> None:
385432
super(Operation, self).__init__(**kwargs)
386433
self.name = None
387434
self.display = display
435+
self.origin = None
436+
self.properties = None
388437

389438

390439
class OperationDisplay(Model):

sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/operations/_apps_operations.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def get(
102102
return client_raw_response
103103

104104
return deserialized
105-
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}'}
105+
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}'}
106106

107107

108108
def _create_or_update_initial(
@@ -210,7 +210,7 @@ def get_long_running_output(response):
210210
elif polling is False: polling_method = NoPolling()
211211
else: polling_method = polling
212212
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
213-
create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}'}
213+
create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}'}
214214

215215

216216
def _update_initial(
@@ -313,7 +313,7 @@ def get_long_running_output(response):
313313
elif polling is False: polling_method = NoPolling()
314314
else: polling_method = polling
315315
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
316-
update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}'}
316+
update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}'}
317317

318318

319319
def _delete_initial(
@@ -394,7 +394,7 @@ def get_long_running_output(response):
394394
elif polling is False: polling_method = NoPolling()
395395
else: polling_method = polling
396396
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
397-
delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}'}
397+
delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}'}
398398

399399
def list_by_subscription(
400400
self, custom_headers=None, raw=False, **operation_config):
@@ -460,7 +460,7 @@ def internal_paging(next_link=None):
460460
deserialized = models.AppPaged(internal_paging, self._deserialize.dependencies, header_dict)
461461

462462
return deserialized
463-
list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/IoTApps'}
463+
list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/iotApps'}
464464

465465
def list_by_resource_group(
466466
self, resource_group_name, custom_headers=None, raw=False, **operation_config):
@@ -530,7 +530,7 @@ def internal_paging(next_link=None):
530530
deserialized = models.AppPaged(internal_paging, self._deserialize.dependencies, header_dict)
531531

532532
return deserialized
533-
list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps'}
533+
list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps'}
534534

535535
def check_name_availability(
536536
self, name, type="IoTApps", custom_headers=None, raw=False, **operation_config):

sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/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 = "4.0.0"
12+
VERSION = "4.1.0"
1313

0 commit comments

Comments
 (0)