Skip to content

Commit

Permalink
CodeGen from PR 13999 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
OperationalInsights - update readme files for cli extension update (Azure#13999)

* added3 new properties to TableProperties:
IsTroubleshootingAllowed, IsTroubleshootingEnabled, IsTroubleshootingEnabledLastActivation.

* added Tables new api version

* changed bool to boolean types

* prettified jsons

* fix erroes in swagger

* undo changes to 2020-03-01-preview version

* pr fixes

* updated TableUpdate example

* changed lastTroubleshootDate from date format to string, removed isTroubleshootingAllowed from body of example

* changed v1 to v2

* changed WorkspaceNameParameter back to V1

* changed ErrorResponse to default ErrorResponse without ref to local definition

* added systemData

* removed systemData

* added systemData to Patch and Get

* moved systemData to Table properties

* deleted systemData from Table.json, added to Get and Put examles

* changed location of systemData in Tables.json

* moved systemData to inside Table definition

* moved systemData inside Table properties

* removed SystemData

* creatted a new package containing all latest swagger files for publishing new SDK

* removed package 2021_02 and set default packate to 2020_10

* removed 2 packages

* removed DataCollectorLogs.json from readme.md 20202.10

* added empty line to try invoke pipeline validations that havent run

* Delete Tables.json

* added3 new properties to TableProperties:
IsTroubleshootingAllowed, IsTroubleshootingEnabled, IsTroubleshootingEnabledLastActivation.

* merge

* prettified jsons

* undo changes to 2020-03-01-preview version

* updated TableUpdate example

* changed lastTroubleshootDate from date format to string, removed isTroubleshootingAllowed from body of example

* changed v1 to v2

* changed WorkspaceNameParameter back to V1

* added systemData

* removed systemData

* added systemData to Patch and Get

* moved systemData to Table properties

* deleted systemData from Table.json, added to Get and Put examles

* changed location of systemData in Tables.json

* moved systemData to inside Table definition

* moved systemData inside Table properties

* removed whitespaces

* changed DataExportErrorResponse to common
.../v2/types.json#/definitions/ErrorResponse

* changed all Error response of 2020-08 to common definition

* added readme.az.md file for cli extension code generator

* added readme.ad.md with the same naming convention as in readme.python.md
added readme.cli.md file
updatted readme.md file with the new azure-cli-extensions tag
all updates were done by following: https://github.com/Azure/autorest.az/blob/9ed1aabd353385f8bdffbfa9f3892478111a029c/doc/how-to-author-readme-file.md

* Update specification/operationalinsights/resource-manager/readme.az.md

Co-authored-by: Qiaoqiao Zhang <[email protected]>

* Update specification/operationalinsights/resource-manager/readme.az.md

Co-authored-by: Qiaoqiao Zhang <[email protected]>

* Update specification/operationalinsights/resource-manager/readme.az.md

Co-authored-by: Qiaoqiao Zhang <[email protected]>

* Update specification/operationalinsights/resource-manager/readme.az.md

Co-authored-by: Qiaoqiao Zhang <[email protected]>

* Update specification/operationalinsights/resource-manager/readme.az.md

Co-authored-by: Qiaoqiao Zhang <[email protected]>

* Update specification/operationalinsights/resource-manager/readme.az.md

Co-authored-by: Qiaoqiao Zhang <[email protected]>

* Update specification/operationalinsights/resource-manager/readme.az.md

Co-authored-by: Qiaoqiao Zhang <[email protected]>

* Update specification/operationalinsights/resource-manager/readme.az.md

Co-authored-by: Qiaoqiao Zhang <[email protected]>

* added azure-powershell to readme.md

Co-authored-by: Qiaoqiao Zhang <[email protected]>
  • Loading branch information
SDKAuto and qiaozha committed Apr 19, 2021
1 parent 4deec3e commit 678ea2e
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 13 deletions.
8 changes: 4 additions & 4 deletions sdk/loganalytics/azure-mgmt-loganalytics/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"autorest": "3.0.6369",
"use": "@autorest/[email protected].2",
"commit": "f5dce125fdad97160346fe3ac32d7d0a49bb11e4",
"autorest": "3.3.0",
"use": "@autorest/[email protected].6",
"commit": "4f4419354e66e087d884a420d8f486e10d71cce5",
"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/[email protected].2 --version=3.0.6369",
"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/[email protected].6 --version=3.3.0",
"readme": "specification/operationalinsights/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from typing import Any, Optional

from azure.core.credentials import TokenCredential
from azure.core.pipeline.transport import HttpRequest, HttpResponse

from ._configuration import LogAnalyticsManagementClientConfiguration
from .operations import DataExportsOperations
Expand Down Expand Up @@ -151,6 +152,24 @@ def __init__(
self.deleted_workspaces = DeletedWorkspacesOperations(
self._client, self._config, self._serialize, self._deserialize)

def _send_request(self, http_request, **kwargs):
# type: (HttpRequest, Any) -> HttpResponse
"""Runs the network request through the client's chained policies.
:param http_request: The network request you want to make. Required.
:type http_request: ~azure.core.pipeline.transport.HttpRequest
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
:return: The response of your network call. Does not do error handling on your response.
:rtype: ~azure.core.pipeline.transport.HttpResponse
"""
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
}
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
stream = kwargs.pop("stream", True)
pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs)
return pipeline_response.http_response

def close(self):
# type: () -> None
self._client.close()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"azure_arm": true,
"has_lro_operations": true,
"client_side_validation": false,
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"LogAnalyticsManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}",
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"LogAnalyticsManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"LogAnalyticsManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}",
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"LogAnalyticsManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}"
},
"global_parameters": {
"sync": {
Expand Down Expand Up @@ -118,11 +118,5 @@
"tables": "TablesOperations",
"workspaces": "WorkspacesOperations",
"deleted_workspaces": "DeletedWorkspacesOperations"
},
"operation_mixins": {
"sync_imports": "None",
"async_imports": "None",
"operations": {
}
}
}
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.0"
VERSION = "7.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

from typing import Any, Optional, TYPE_CHECKING

from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
from azure.mgmt.core import AsyncARMPipelineClient
from msrest import Deserializer, Serializer

Expand Down Expand Up @@ -148,6 +149,23 @@ def __init__(
self.deleted_workspaces = DeletedWorkspacesOperations(
self._client, self._config, self._serialize, self._deserialize)

async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
"""Runs the network request through the client's chained policies.
:param http_request: The network request you want to make. Required.
:type http_request: ~azure.core.pipeline.transport.HttpRequest
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
:return: The response of your network call. Does not do error handling on your response.
:rtype: ~azure.core.pipeline.transport.AsyncHttpResponse
"""
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
}
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
stream = kwargs.pop("stream", True)
pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs)
return pipeline_response.http_response

async def close(self) -> None:
await self._client.close()

Expand Down

0 comments on commit 678ea2e

Please sign in to comment.