Skip to content

Commit

Permalink
CodeGen from PR 14569 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 87aecbfb8eefe216032b62602815a28ff3a0d8ca into 394395e
  • Loading branch information
SDKAuto committed May 27, 2021
1 parent 440274e commit 3d98efc
Show file tree
Hide file tree
Showing 27 changed files with 124 additions and 114 deletions.
11 changes: 7 additions & 4 deletions sdk/loganalytics/azure-mgmt-loganalytics/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"autorest": "3.3.0",
"use": "@autorest/[email protected]",
"commit": "96e8b312e8e732cd6ce52dae178ff0ae3768f8da",
"autorest": "3.4.2",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "de4801f9903d52e782e75bab99858dd6ca9d5de2",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/operationalinsights/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/operationalinsights/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.0 --use=@autorest/[email protected] --version=3.4.2",
"readme": "specification/operationalinsights/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 = "10.0.0"
VERSION = "7.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def list_by_workspace(
self,
resource_group_name: str,
workspace_name: str,
**kwargs
**kwargs: Any
) -> List["_models.AvailableServiceTier"]:
"""Gets the available service tiers for the workspace.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:
def list_by_resource_group(
self,
resource_group_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.ClusterListResult"]:
"""Gets Log Analytics clusters in a resource group.
Expand Down Expand Up @@ -116,7 +116,7 @@ async def get_next(next_link=None):

def list(
self,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.ClusterListResult"]:
"""Gets the Log Analytics clusters in a subscription.
Expand Down Expand Up @@ -186,7 +186,7 @@ async def _create_or_update_initial(
resource_group_name: str,
cluster_name: str,
parameters: "_models.Cluster",
**kwargs
**kwargs: Any
) -> Optional["_models.Cluster"]:
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.Cluster"]]
error_map = {
Expand Down Expand Up @@ -245,7 +245,7 @@ async def begin_create_or_update(
resource_group_name: str,
cluster_name: str,
parameters: "_models.Cluster",
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.Cluster"]:
"""Create or update a Log Analytics cluster.
Expand All @@ -257,8 +257,8 @@ async def begin_create_or_update(
:type parameters: ~azure.mgmt.loganalytics.models.Cluster
: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 Cluster or the result of cls(response)
Expand Down Expand Up @@ -315,7 +315,7 @@ async def _delete_initial(
self,
resource_group_name: str,
cluster_name: str,
**kwargs
**kwargs: Any
) -> None:
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
Expand Down Expand Up @@ -360,7 +360,7 @@ async def begin_delete(
self,
resource_group_name: str,
cluster_name: str,
**kwargs
**kwargs: Any
) -> AsyncLROPoller[None]:
"""Deletes a cluster instance.
Expand All @@ -370,8 +370,8 @@ async def begin_delete(
:type cluster_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 @@ -424,7 +424,7 @@ async def get(
self,
resource_group_name: str,
cluster_name: str,
**kwargs
**kwargs: Any
) -> "_models.Cluster":
"""Gets a Log Analytics cluster instance.
Expand Down Expand Up @@ -484,7 +484,7 @@ async def update(
resource_group_name: str,
cluster_name: str,
parameters: "_models.ClusterPatch",
**kwargs
**kwargs: Any
) -> "_models.Cluster":
"""Updates a Log Analytics cluster.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def list_by_workspace(
self,
resource_group_name: str,
workspace_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.DataExportListResult"]:
"""Lists the data export instances within a workspace.
Expand Down Expand Up @@ -122,7 +122,7 @@ async def create_or_update(
workspace_name: str,
data_export_name: str,
parameters: "_models.DataExport",
**kwargs
**kwargs: Any
) -> "_models.DataExport":
"""Create or update a data export.
Expand Down Expand Up @@ -196,7 +196,7 @@ async def get(
resource_group_name: str,
workspace_name: str,
data_export_name: str,
**kwargs
**kwargs: Any
) -> "_models.DataExport":
"""Gets a data export instance.
Expand Down Expand Up @@ -259,7 +259,7 @@ async def delete(
resource_group_name: str,
workspace_name: str,
data_export_name: str,
**kwargs
**kwargs: Any
) -> None:
"""Deletes the specified data export in a given workspace..
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async def create_or_update(
workspace_name: str,
data_source_name: str,
parameters: "_models.DataSource",
**kwargs
**kwargs: Any
) -> "_models.DataSource":
"""Create or update a data source.
Expand Down Expand Up @@ -120,7 +120,7 @@ async def delete(
resource_group_name: str,
workspace_name: str,
data_source_name: str,
**kwargs
**kwargs: Any
) -> None:
"""Deletes a data source instance.
Expand Down Expand Up @@ -177,7 +177,7 @@ async def get(
resource_group_name: str,
workspace_name: str,
data_source_name: str,
**kwargs
**kwargs: Any
) -> "_models.DataSource":
"""Gets a datasource instance.
Expand Down Expand Up @@ -240,7 +240,7 @@ def list_by_workspace(
workspace_name: str,
filter: str,
skiptoken: Optional[str] = None,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.DataSourceListResult"]:
"""Gets the first page of data source instances in a workspace with the link to the next page.
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.WorkspaceListResult"]:
"""Gets recently deleted workspaces in a subscription, available for recovery.
Expand Down Expand Up @@ -111,7 +111,7 @@ async def get_next(next_link=None):
def list_by_resource_group(
self,
resource_group_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.WorkspaceListResult"]:
"""Gets recently deleted workspaces in a resource group, available for recovery.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def delete(
resource_group_name: str,
workspace_name: str,
gateway_id: str,
**kwargs
**kwargs: Any
) -> None:
"""Delete a Log Analytics gateway.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def disable(
resource_group_name: str,
workspace_name: str,
intelligence_pack_name: str,
**kwargs
**kwargs: Any
) -> None:
"""Disables an intelligence pack for a given workspace.
Expand Down Expand Up @@ -102,7 +102,7 @@ async def enable(
resource_group_name: str,
workspace_name: str,
intelligence_pack_name: str,
**kwargs
**kwargs: Any
) -> None:
"""Enables an intelligence pack for a given workspace.
Expand Down Expand Up @@ -158,7 +158,7 @@ async def list(
self,
resource_group_name: str,
workspace_name: str,
**kwargs
**kwargs: Any
) -> List["_models.IntelligencePack"]:
"""Lists all the intelligence packs possible and whether they are enabled or disabled for a given
workspace.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async def _create_or_update_initial(
workspace_name: str,
linked_service_name: str,
parameters: "_models.LinkedService",
**kwargs
**kwargs: Any
) -> "_models.LinkedService":
cls = kwargs.pop('cls', None) # type: ClsType["_models.LinkedService"]
error_map = {
Expand Down Expand Up @@ -108,7 +108,7 @@ async def begin_create_or_update(
workspace_name: str,
linked_service_name: str,
parameters: "_models.LinkedService",
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.LinkedService"]:
"""Create or update a linked service.
Expand All @@ -122,8 +122,8 @@ async def begin_create_or_update(
:type parameters: ~azure.mgmt.loganalytics.models.LinkedService
: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 LinkedService or the result of cls(response)
Expand Down Expand Up @@ -183,7 +183,7 @@ async def _delete_initial(
resource_group_name: str,
workspace_name: str,
linked_service_name: str,
**kwargs
**kwargs: Any
) -> Optional["_models.LinkedService"]:
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.LinkedService"]]
error_map = {
Expand Down Expand Up @@ -234,7 +234,7 @@ async def begin_delete(
resource_group_name: str,
workspace_name: str,
linked_service_name: str,
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.LinkedService"]:
"""Deletes a linked service instance.
Expand All @@ -246,8 +246,8 @@ async def begin_delete(
:type linked_service_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 LinkedService or the result of cls(response)
Expand Down Expand Up @@ -306,7 +306,7 @@ async def get(
resource_group_name: str,
workspace_name: str,
linked_service_name: str,
**kwargs
**kwargs: Any
) -> "_models.LinkedService":
"""Gets a linked service instance.
Expand Down Expand Up @@ -367,7 +367,7 @@ def list_by_workspace(
self,
resource_group_name: str,
workspace_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.LinkedServiceListResult"]:
"""Gets the linked services instances in a workspace.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async def create_or_update(
workspace_name: str,
data_source_type: Union[str, "_models.DataSourceType"],
parameters: "_models.LinkedStorageAccountsResource",
**kwargs
**kwargs: Any
) -> "_models.LinkedStorageAccountsResource":
"""Create or Update a link relation between current workspace and a group of storage accounts of a
specific data source type.
Expand Down Expand Up @@ -117,7 +117,7 @@ async def delete(
resource_group_name: str,
workspace_name: str,
data_source_type: Union[str, "_models.DataSourceType"],
**kwargs
**kwargs: Any
) -> None:
"""Deletes all linked storage accounts of a specific data source type associated with the
specified workspace.
Expand Down Expand Up @@ -175,7 +175,7 @@ async def get(
resource_group_name: str,
workspace_name: str,
data_source_type: Union[str, "_models.DataSourceType"],
**kwargs
**kwargs: Any
) -> "_models.LinkedStorageAccountsResource":
"""Gets all linked storage account of a specific data source type associated with the specified
workspace.
Expand Down Expand Up @@ -237,7 +237,7 @@ def list_by_workspace(
self,
resource_group_name: str,
workspace_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.LinkedStorageAccountsListResult"]:
"""Gets all linked storage accounts associated with the specified workspace, storage accounts will
be sorted by their data source type.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def list(
self,
resource_group_name: str,
workspace_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.WorkspaceListManagementGroupsResult"]:
"""Gets a list of management groups connected to a workspace.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(
self,
location: str,
async_operation_id: str,
**kwargs
**kwargs: Any
) -> "_models.OperationStatus":
"""Get the status of a long running azure asynchronous operation.
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 OperationalInsights Rest API operations.
Expand Down
Loading

0 comments on commit 3d98efc

Please sign in to comment.