Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR track2_azure-mgmt-iotcentral] [Hub Generated] Review request for Microsoft.IoTCentral to add version stable/2021-06-01 #7432

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions sdk/iothub/azure-mgmt-iotcentral/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"autorest": "3.4.2",
"use": "@autorest/python@5.6.6",
"commit": "15d7abacf7b4f7317ef96f7e8300a7b51e315e7b",
"autorest": "3.4.5",
"use": [
"@autorest/python@5.8.4",
"@autorest/modelerfour@4.19.2"
],
"commit": "d08a6bf945578219340525de0f2bfeabd96a6988",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"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",
"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/modelerfour@4.19.2 --version=3.4.5",
"readme": "specification/iotcentral/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2018-09-01"
self.api_version = "2021-06-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-iotcentral/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chosen_version": "2018-09-01",
"total_api_version_list": ["2018-09-01"],
"chosen_version": "2021-06-01",
"total_api_version_list": ["2021-06-01"],
"client": {
"name": "IotCentralClient",
"filename": "_iot_central_client",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "9.0.0b1"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2018-09-01"
self.api_version = "2021-06-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-iotcentral/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async def get(
self,
resource_group_name: str,
resource_name: str,
**kwargs
**kwargs: Any
) -> "_models.App":
"""Get the metadata of an IoT Central application.

Expand All @@ -66,7 +66,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2018-09-01"
api_version = "2021-06-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -107,14 +107,14 @@ async def _create_or_update_initial(
resource_group_name: str,
resource_name: str,
app: "_models.App",
**kwargs
**kwargs: Any
) -> Optional["_models.App"]:
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.App"]]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2018-09-01"
api_version = "2021-06-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

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

Expand Down Expand Up @@ -294,7 +294,7 @@ async def begin_update(
resource_group_name: str,
resource_name: str,
app_patch: "_models.AppPatch",
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.App"]:
"""Update the metadata of an IoT Central application.

Expand All @@ -307,8 +307,8 @@ async def begin_update(
:type app_patch: ~azure.mgmt.iotcentral.models.AppPatch
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either App or the result of cls(response)
Expand Down Expand Up @@ -365,14 +365,14 @@ async def _delete_initial(
self,
resource_group_name: str,
resource_name: str,
**kwargs
**kwargs: Any
) -> None:
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2018-09-01"
api_version = "2021-06-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -409,7 +409,7 @@ async def begin_delete(
self,
resource_group_name: str,
resource_name: str,
**kwargs
**kwargs: Any
) -> AsyncLROPoller[None]:
"""Delete an IoT Central application.

Expand All @@ -420,8 +420,8 @@ async def begin_delete(
:type resource_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
Expand Down Expand Up @@ -472,7 +472,7 @@ def get_long_running_output(pipeline_response):

def list_by_subscription(
self,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.AppListResult"]:
"""Get all IoT Central Applications in a subscription.

Expand All @@ -486,7 +486,7 @@ def list_by_subscription(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2018-09-01"
api_version = "2021-06-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -539,7 +539,7 @@ async def get_next(next_link=None):
def list_by_resource_group(
self,
resource_group_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.AppListResult"]:
"""Get all the IoT Central Applications in a resource group.

Expand All @@ -556,7 +556,7 @@ def list_by_resource_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2018-09-01"
api_version = "2021-06-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -610,7 +610,7 @@ async def get_next(next_link=None):
async def check_name_availability(
self,
operation_inputs: "_models.OperationInputs",
**kwargs
**kwargs: Any
) -> "_models.AppAvailabilityInfo":
"""Check if an IoT Central application name is available.

Expand All @@ -627,7 +627,7 @@ async def check_name_availability(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2018-09-01"
api_version = "2021-06-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -669,7 +669,7 @@ async def check_name_availability(
async def check_subdomain_availability(
self,
operation_inputs: "_models.OperationInputs",
**kwargs
**kwargs: Any
) -> "_models.AppAvailabilityInfo":
"""Check if an IoT Central application subdomain is available.

Expand All @@ -686,7 +686,7 @@ async def check_subdomain_availability(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2018-09-01"
api_version = "2021-06-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -727,7 +727,7 @@ async def check_subdomain_availability(

def list_templates(
self,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.AppTemplatesResult"]:
"""Get all available application templates.

Expand All @@ -741,7 +741,7 @@ def list_templates(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2018-09-01"
api_version = "2021-06-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ def __init__(self, client, config, serializer, deserializer) -> None:

def list(
self,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.OperationListResult"]:
"""Lists all of the available IoT Central application REST API operations.
"""Lists all of the available IoT Central Resource Provider operations.

:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either OperationListResult or the result of cls(response)
Expand All @@ -57,7 +57,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2018-09-01"
api_version = "2021-06-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from ._models_py3 import OperationInputs
from ._models_py3 import OperationListResult
from ._models_py3 import Resource
from ._models_py3 import SystemAssignedServiceIdentity
except (SyntaxError, ImportError):
from ._models import App # type: ignore
from ._models import AppAvailabilityInfo # type: ignore
Expand All @@ -36,9 +37,12 @@
from ._models import OperationInputs # type: ignore
from ._models import OperationListResult # type: ignore
from ._models import Resource # type: ignore
from ._models import SystemAssignedServiceIdentity # type: ignore

from ._iot_central_client_enums import (
AppSku,
AppState,
SystemAssignedServiceIdentityType,
)

__all__ = [
Expand All @@ -56,5 +60,8 @@
'OperationInputs',
'OperationListResult',
'Resource',
'SystemAssignedServiceIdentity',
'AppSku',
'AppState',
'SystemAssignedServiceIdentityType',
]
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,20 @@ class AppSku(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""The name of the SKU.
"""

F1 = "F1"
S1 = "S1"
ST0 = "ST0"
ST1 = "ST1"
ST2 = "ST2"

class AppState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""The current state of the application.
"""

CREATED = "created"
SUSPENDED = "suspended"

class SystemAssignedServiceIdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Type of managed service identity (either system assigned, or none).
"""

NONE = "None"
SYSTEM_ASSIGNED = "SystemAssigned"
Loading