Skip to content

Commit 3453bb5

Browse files
author
SDKAuto
committed
CodeGen from PR 16393 in Azure/azure-rest-api-specs
Merge 1e49df24d4ae2cffb01fb276d19f191648348096 into 60723d1
1 parent 8f0d3e6 commit 3453bb5

File tree

13 files changed

+210
-66
lines changed

13 files changed

+210
-66
lines changed
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
2-
"autorest": "3.4.2",
3-
"use": "@autorest/[email protected]",
4-
"commit": "15d7abacf7b4f7317ef96f7e8300a7b51e315e7b",
2+
"autorest": "3.4.5",
3+
"use": [
4+
"@autorest/[email protected]",
5+
"@autorest/[email protected]"
6+
],
7+
"commit": "e2862df5f2aaef464ed8ad1a902203be14607ba8",
58
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6-
"autorest_command": "autorest specification/iotcentral/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.6.6 --version=3.4.2",
9+
"autorest_command": "autorest specification/iotcentral/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/[email protected] --version=3.4.5",
710
"readme": "specification/iotcentral/resource-manager/readme.md"
811
}

sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(
4848

4949
self.credential = credential
5050
self.subscription_id = subscription_id
51-
self.api_version = "2018-09-01"
51+
self.api_version = "2021-06-01"
5252
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5353
kwargs.setdefault('sdk_moniker', 'mgmt-iotcentral/{}'.format(VERSION))
5454
self._configure(**kwargs)

sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/_metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"chosen_version": "2018-09-01",
3-
"total_api_version_list": ["2018-09-01"],
2+
"chosen_version": "2021-06-01",
3+
"total_api_version_list": ["2021-06-01"],
44
"client": {
55
"name": "IotCentralClient",
66
"filename": "_iot_central_client",

sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "9.0.0b1"
9+
VERSION = "1.0.0b1"

sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/aio/_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(
4545

4646
self.credential = credential
4747
self.subscription_id = subscription_id
48-
self.api_version = "2018-09-01"
48+
self.api_version = "2021-06-01"
4949
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5050
kwargs.setdefault('sdk_moniker', 'mgmt-iotcentral/{}'.format(VERSION))
5151
self._configure(**kwargs)

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

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async def get(
4747
self,
4848
resource_group_name: str,
4949
resource_name: str,
50-
**kwargs
50+
**kwargs: Any
5151
) -> "_models.App":
5252
"""Get the metadata of an IoT Central application.
5353
@@ -66,7 +66,7 @@ async def get(
6666
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
6767
}
6868
error_map.update(kwargs.pop('error_map', {}))
69-
api_version = "2018-09-01"
69+
api_version = "2021-06-01"
7070
accept = "application/json"
7171

7272
# Construct URL
@@ -107,14 +107,14 @@ async def _create_or_update_initial(
107107
resource_group_name: str,
108108
resource_name: str,
109109
app: "_models.App",
110-
**kwargs
110+
**kwargs: Any
111111
) -> Optional["_models.App"]:
112112
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.App"]]
113113
error_map = {
114114
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
115115
}
116116
error_map.update(kwargs.pop('error_map', {}))
117-
api_version = "2018-09-01"
117+
api_version = "2021-06-01"
118118
content_type = kwargs.pop("content_type", "application/json")
119119
accept = "application/json"
120120

@@ -165,7 +165,7 @@ async def begin_create_or_update(
165165
resource_group_name: str,
166166
resource_name: str,
167167
app: "_models.App",
168-
**kwargs
168+
**kwargs: Any
169169
) -> AsyncLROPoller["_models.App"]:
170170
"""Create or update the metadata of an IoT Central application. The usual pattern to modify a
171171
property is to retrieve the IoT Central application metadata and security metadata, and then
@@ -180,8 +180,8 @@ async def begin_create_or_update(
180180
:type app: ~azure.mgmt.iotcentral.models.App
181181
:keyword callable cls: A custom type or function that will be passed the direct response
182182
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
183-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
184-
False for no polling, or your own initialized polling object for a personal polling strategy.
183+
:keyword polling: By default, your polling method will be AsyncARMPolling.
184+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
185185
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
186186
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
187187
:return: An instance of AsyncLROPoller that returns either App or the result of cls(response)
@@ -239,14 +239,14 @@ async def _update_initial(
239239
resource_group_name: str,
240240
resource_name: str,
241241
app_patch: "_models.AppPatch",
242-
**kwargs
242+
**kwargs: Any
243243
) -> Optional["_models.App"]:
244244
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.App"]]
245245
error_map = {
246246
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
247247
}
248248
error_map.update(kwargs.pop('error_map', {}))
249-
api_version = "2018-09-01"
249+
api_version = "2021-06-01"
250250
content_type = kwargs.pop("content_type", "application/json")
251251
accept = "application/json"
252252

@@ -294,7 +294,7 @@ async def begin_update(
294294
resource_group_name: str,
295295
resource_name: str,
296296
app_patch: "_models.AppPatch",
297-
**kwargs
297+
**kwargs: Any
298298
) -> AsyncLROPoller["_models.App"]:
299299
"""Update the metadata of an IoT Central application.
300300
@@ -307,8 +307,8 @@ async def begin_update(
307307
:type app_patch: ~azure.mgmt.iotcentral.models.AppPatch
308308
:keyword callable cls: A custom type or function that will be passed the direct response
309309
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
310-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
311-
False for no polling, or your own initialized polling object for a personal polling strategy.
310+
:keyword polling: By default, your polling method will be AsyncARMPolling.
311+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
312312
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
313313
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
314314
:return: An instance of AsyncLROPoller that returns either App or the result of cls(response)
@@ -365,14 +365,14 @@ async def _delete_initial(
365365
self,
366366
resource_group_name: str,
367367
resource_name: str,
368-
**kwargs
368+
**kwargs: Any
369369
) -> None:
370370
cls = kwargs.pop('cls', None) # type: ClsType[None]
371371
error_map = {
372372
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
373373
}
374374
error_map.update(kwargs.pop('error_map', {}))
375-
api_version = "2018-09-01"
375+
api_version = "2021-06-01"
376376
accept = "application/json"
377377

378378
# Construct URL
@@ -409,7 +409,7 @@ async def begin_delete(
409409
self,
410410
resource_group_name: str,
411411
resource_name: str,
412-
**kwargs
412+
**kwargs: Any
413413
) -> AsyncLROPoller[None]:
414414
"""Delete an IoT Central application.
415415
@@ -420,8 +420,8 @@ async def begin_delete(
420420
:type resource_name: str
421421
:keyword callable cls: A custom type or function that will be passed the direct response
422422
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
423-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
424-
False for no polling, or your own initialized polling object for a personal polling strategy.
423+
:keyword polling: By default, your polling method will be AsyncARMPolling.
424+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
425425
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
426426
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
427427
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
@@ -472,7 +472,7 @@ def get_long_running_output(pipeline_response):
472472

473473
def list_by_subscription(
474474
self,
475-
**kwargs
475+
**kwargs: Any
476476
) -> AsyncIterable["_models.AppListResult"]:
477477
"""Get all IoT Central Applications in a subscription.
478478
@@ -486,7 +486,7 @@ def list_by_subscription(
486486
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
487487
}
488488
error_map.update(kwargs.pop('error_map', {}))
489-
api_version = "2018-09-01"
489+
api_version = "2021-06-01"
490490
accept = "application/json"
491491

492492
def prepare_request(next_link=None):
@@ -539,7 +539,7 @@ async def get_next(next_link=None):
539539
def list_by_resource_group(
540540
self,
541541
resource_group_name: str,
542-
**kwargs
542+
**kwargs: Any
543543
) -> AsyncIterable["_models.AppListResult"]:
544544
"""Get all the IoT Central Applications in a resource group.
545545
@@ -556,7 +556,7 @@ def list_by_resource_group(
556556
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
557557
}
558558
error_map.update(kwargs.pop('error_map', {}))
559-
api_version = "2018-09-01"
559+
api_version = "2021-06-01"
560560
accept = "application/json"
561561

562562
def prepare_request(next_link=None):
@@ -610,7 +610,7 @@ async def get_next(next_link=None):
610610
async def check_name_availability(
611611
self,
612612
operation_inputs: "_models.OperationInputs",
613-
**kwargs
613+
**kwargs: Any
614614
) -> "_models.AppAvailabilityInfo":
615615
"""Check if an IoT Central application name is available.
616616
@@ -627,7 +627,7 @@ async def check_name_availability(
627627
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
628628
}
629629
error_map.update(kwargs.pop('error_map', {}))
630-
api_version = "2018-09-01"
630+
api_version = "2021-06-01"
631631
content_type = kwargs.pop("content_type", "application/json")
632632
accept = "application/json"
633633

@@ -669,7 +669,7 @@ async def check_name_availability(
669669
async def check_subdomain_availability(
670670
self,
671671
operation_inputs: "_models.OperationInputs",
672-
**kwargs
672+
**kwargs: Any
673673
) -> "_models.AppAvailabilityInfo":
674674
"""Check if an IoT Central application subdomain is available.
675675
@@ -686,7 +686,7 @@ async def check_subdomain_availability(
686686
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
687687
}
688688
error_map.update(kwargs.pop('error_map', {}))
689-
api_version = "2018-09-01"
689+
api_version = "2021-06-01"
690690
content_type = kwargs.pop("content_type", "application/json")
691691
accept = "application/json"
692692

@@ -727,7 +727,7 @@ async def check_subdomain_availability(
727727

728728
def list_templates(
729729
self,
730-
**kwargs
730+
**kwargs: Any
731731
) -> AsyncIterable["_models.AppTemplatesResult"]:
732732
"""Get all available application templates.
733733
@@ -741,7 +741,7 @@ def list_templates(
741741
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
742742
}
743743
error_map.update(kwargs.pop('error_map', {}))
744-
api_version = "2018-09-01"
744+
api_version = "2021-06-01"
745745
accept = "application/json"
746746

747747
def prepare_request(next_link=None):

sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/aio/operations/_operations.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ def __init__(self, client, config, serializer, deserializer) -> None:
4343

4444
def list(
4545
self,
46-
**kwargs
46+
**kwargs: Any
4747
) -> AsyncIterable["_models.OperationListResult"]:
48-
"""Lists all of the available IoT Central application REST API operations.
48+
"""Lists all of the available IoT Central Resource Provider operations.
4949
5050
:keyword callable cls: A custom type or function that will be passed the direct response
5151
:return: An iterator like instance of either OperationListResult or the result of cls(response)
@@ -57,7 +57,7 @@ def list(
5757
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
5858
}
5959
error_map.update(kwargs.pop('error_map', {}))
60-
api_version = "2018-09-01"
60+
api_version = "2021-06-01"
6161
accept = "application/json"
6262

6363
def prepare_request(next_link=None):

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from ._models_py3 import OperationInputs
2222
from ._models_py3 import OperationListResult
2323
from ._models_py3 import Resource
24+
from ._models_py3 import SystemAssignedServiceIdentity
2425
except (SyntaxError, ImportError):
2526
from ._models import App # type: ignore
2627
from ._models import AppAvailabilityInfo # type: ignore
@@ -36,9 +37,12 @@
3637
from ._models import OperationInputs # type: ignore
3738
from ._models import OperationListResult # type: ignore
3839
from ._models import Resource # type: ignore
40+
from ._models import SystemAssignedServiceIdentity # type: ignore
3941

4042
from ._iot_central_client_enums import (
4143
AppSku,
44+
AppState,
45+
SystemAssignedServiceIdentityType,
4246
)
4347

4448
__all__ = [
@@ -56,5 +60,8 @@
5660
'OperationInputs',
5761
'OperationListResult',
5862
'Resource',
63+
'SystemAssignedServiceIdentity',
5964
'AppSku',
65+
'AppState',
66+
'SystemAssignedServiceIdentityType',
6067
]

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

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,20 @@ class AppSku(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
3030
"""The name of the SKU.
3131
"""
3232

33-
F1 = "F1"
34-
S1 = "S1"
3533
ST0 = "ST0"
3634
ST1 = "ST1"
3735
ST2 = "ST2"
36+
37+
class AppState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
38+
"""The current state of the application.
39+
"""
40+
41+
CREATED = "created"
42+
SUSPENDED = "suspended"
43+
44+
class SystemAssignedServiceIdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
45+
"""Type of managed service identity (either system assigned, or none).
46+
"""
47+
48+
NONE = "None"
49+
SYSTEM_ASSIGNED = "SystemAssigned"

0 commit comments

Comments
 (0)