Skip to content

Commit

Permalink
CodeGen from PR 16902 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge c7144760e2fddd0b9328f113cff6a03b2a8c8987 into b22180c
  • Loading branch information
SDKAuto committed Nov 30, 2021
1 parent d769535 commit 19d0b75
Show file tree
Hide file tree
Showing 28 changed files with 144 additions and 147 deletions.
11 changes: 7 additions & 4 deletions sdk/digitaltwins/azure-mgmt-digitaltwins/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"autorest": "3.3.0",
"use": "@autorest/python@5.6.6",
"commit": "dda51a4bf761a7e9e22c9085623f6201910f5efd",
"autorest": "3.4.5",
"use": [
"@autorest/python@5.8.4",
"@autorest/modelerfour@4.19.2"
],
"commit": "3d1c5d45f465ee873b46edacd52d045cf75cb7c3",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/digitaltwins/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.3.0",
"autorest_command": "autorest specification/digitaltwins/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/digitaltwins/resource-manager/readme.md"
}
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 = "6.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def list(
self,
resource_group_name: str,
resource_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.DigitalTwinsEndpointResourceListResult"]:
"""Get DigitalTwinsInstance Endpoints.
Expand Down Expand Up @@ -124,7 +124,7 @@ async def get(
resource_group_name: str,
resource_name: str,
endpoint_name: str,
**kwargs
**kwargs: Any
) -> "_models.DigitalTwinsEndpointResource":
"""Get DigitalTwinsInstances Endpoint.
Expand Down Expand Up @@ -189,7 +189,7 @@ async def _create_or_update_initial(
resource_name: str,
endpoint_name: str,
endpoint_description: "_models.DigitalTwinsEndpointResource",
**kwargs
**kwargs: Any
) -> "_models.DigitalTwinsEndpointResource":
cls = kwargs.pop('cls', None) # type: ClsType["_models.DigitalTwinsEndpointResource"]
error_map = {
Expand Down Expand Up @@ -249,7 +249,7 @@ async def begin_create_or_update(
resource_name: str,
endpoint_name: str,
endpoint_description: "_models.DigitalTwinsEndpointResource",
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.DigitalTwinsEndpointResource"]:
"""Create or update DigitalTwinsInstance endpoint.
Expand All @@ -264,8 +264,8 @@ async def begin_create_or_update(
:type endpoint_description: ~azure.mgmt.digitaltwins.v2020_03_01_preview.models.DigitalTwinsEndpointResource
: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 DigitalTwinsEndpointResource or the result of cls(response)
Expand Down Expand Up @@ -325,7 +325,7 @@ async def _delete_initial(
resource_group_name: str,
resource_name: str,
endpoint_name: str,
**kwargs
**kwargs: Any
) -> Optional["_models.DigitalTwinsEndpointResource"]:
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DigitalTwinsEndpointResource"]]
error_map = {
Expand Down Expand Up @@ -377,7 +377,7 @@ async def begin_delete(
resource_group_name: str,
resource_name: str,
endpoint_name: str,
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.DigitalTwinsEndpointResource"]:
"""Delete a DigitalTwinsInstance endpoint.
Expand All @@ -390,8 +390,8 @@ async def begin_delete(
:type endpoint_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
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.DigitalTwinsDescription":
"""Get DigitalTwinsInstances resource.
Expand Down Expand Up @@ -108,7 +108,7 @@ async def _create_or_update_initial(
resource_group_name: str,
resource_name: str,
digital_twins_create: "_models.DigitalTwinsDescription",
**kwargs
**kwargs: Any
) -> "_models.DigitalTwinsDescription":
cls = kwargs.pop('cls', None) # type: ClsType["_models.DigitalTwinsDescription"]
error_map = {
Expand Down Expand Up @@ -166,7 +166,7 @@ async def begin_create_or_update(
resource_group_name: str,
resource_name: str,
digital_twins_create: "_models.DigitalTwinsDescription",
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.DigitalTwinsDescription"]:
"""Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property
is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the
Expand All @@ -181,8 +181,8 @@ async def begin_create_or_update(
:type digital_twins_create: ~azure.mgmt.digitaltwins.v2020_03_01_preview.models.DigitalTwinsDescription
: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 DigitalTwinsDescription or the result of cls(response)
Expand Down Expand Up @@ -240,7 +240,7 @@ async def _update_initial(
resource_group_name: str,
resource_name: str,
digital_twins_patch_description: "_models.DigitalTwinsPatchDescription",
**kwargs
**kwargs: Any
) -> Optional["_models.DigitalTwinsDescription"]:
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DigitalTwinsDescription"]]
error_map = {
Expand Down Expand Up @@ -296,7 +296,7 @@ async def begin_update(
resource_group_name: str,
resource_name: str,
digital_twins_patch_description: "_models.DigitalTwinsPatchDescription",
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.DigitalTwinsDescription"]:
"""Update metadata of DigitalTwinsInstance.
Expand All @@ -309,8 +309,8 @@ async def begin_update(
:type digital_twins_patch_description: ~azure.mgmt.digitaltwins.v2020_03_01_preview.models.DigitalTwinsPatchDescription
: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 DigitalTwinsDescription or the result of cls(response)
Expand Down Expand Up @@ -367,7 +367,7 @@ async def _delete_initial(
self,
resource_group_name: str,
resource_name: str,
**kwargs
**kwargs: Any
) -> Optional["_models.DigitalTwinsDescription"]:
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DigitalTwinsDescription"]]
error_map = {
Expand Down Expand Up @@ -417,7 +417,7 @@ async def begin_delete(
self,
resource_group_name: str,
resource_name: str,
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.DigitalTwinsDescription"]:
"""Delete a DigitalTwinsInstance.
Expand All @@ -428,8 +428,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 @@ -483,7 +483,7 @@ def get_long_running_output(pipeline_response):

def list(
self,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.DigitalTwinsDescriptionListResult"]:
"""Get all the DigitalTwinsInstances in a subscription.
Expand Down Expand Up @@ -551,7 +551,7 @@ async def get_next(next_link=None):
def list_by_resource_group(
self,
resource_group_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.DigitalTwinsDescriptionListResult"]:
"""Get all the DigitalTwinsInstances in a resource group.
Expand Down Expand Up @@ -624,7 +624,7 @@ async def check_name_availability(
self,
location: str,
digital_twins_instance_check_name: "_models.CheckNameRequest",
**kwargs
**kwargs: Any
) -> "_models.CheckNameResult":
"""Check if a DigitalTwinsInstance name is available.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:

def list(
self,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.OperationListResult"]:
"""Lists all of the available DigitalTwins service REST API operations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ class CheckNameRequest(msrest.serialization.Model):
:param name: Required. Resource name.
:type name: str
:ivar type: Required. The type of resource, for instance
Microsoft.DigitalTwins/digitalTwinsInstances. Default value:
"Microsoft.DigitalTwins/digitalTwinsInstances".
:ivar type: The type of resource, for instance Microsoft.DigitalTwins/digitalTwinsInstances.
Has constant value: "Microsoft.DigitalTwins/digitalTwinsInstances".
:vartype type: str
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ class CheckNameRequest(msrest.serialization.Model):
:param name: Required. Resource name.
:type name: str
:ivar type: Required. The type of resource, for instance
Microsoft.DigitalTwins/digitalTwinsInstances. Default value:
"Microsoft.DigitalTwins/digitalTwinsInstances".
:ivar type: The type of resource, for instance Microsoft.DigitalTwins/digitalTwinsInstances.
Has constant value: "Microsoft.DigitalTwins/digitalTwinsInstances".
:vartype type: str
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,8 @@ def begin_create_or_update(
:type endpoint_description: ~azure.mgmt.digitaltwins.v2020_03_01_preview.models.DigitalTwinsEndpointResource
: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 ARMPolling 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 ARMPolling.
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.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either DigitalTwinsEndpointResource or the result of cls(response)
Expand Down Expand Up @@ -400,8 +400,8 @@ def begin_delete(
:type endpoint_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 ARMPolling 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 ARMPolling.
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.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either None or the result of cls(response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ def begin_create_or_update(
:type digital_twins_create: ~azure.mgmt.digitaltwins.v2020_03_01_preview.models.DigitalTwinsDescription
: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 ARMPolling 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 ARMPolling.
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.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either DigitalTwinsDescription or the result of cls(response)
Expand Down Expand Up @@ -318,8 +318,8 @@ def begin_update(
:type digital_twins_patch_description: ~azure.mgmt.digitaltwins.v2020_03_01_preview.models.DigitalTwinsPatchDescription
: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 ARMPolling 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 ARMPolling.
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.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either DigitalTwinsDescription or the result of cls(response)
Expand Down Expand Up @@ -439,8 +439,8 @@ 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 ARMPolling 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 ARMPolling.
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.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either None or the result of cls(response)
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 = "6.0.0"
VERSION = "1.0.0b1"
Loading

0 comments on commit 19d0b75

Please sign in to comment.