Skip to content

Commit 47bdbcd

Browse files
author
SDKAuto
committed
CodeGen from PR 14233 in Azure/azure-rest-api-specs
Merge 60346f1afb8a73953a462362b6f490700b43cec1 into f75162dc13d19a06ddf5eeea3186dd3dbef1c05e
1 parent 61971ae commit 47bdbcd

File tree

212 files changed

+54935
-5044
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

212 files changed

+54935
-5044
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"autorest": "3.0.6369",
3-
"use": "@autorest/[email protected].2",
4-
"commit": "b79c669038a6932848bf402578a4bceb2e9f329c",
2+
"autorest": "3.3.0",
3+
"use": "@autorest/[email protected].6",
4+
"commit": "8d92e4fbdc40348f9b00f05f17cf98d623da6fd9",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6-
"autorest_command": "autorest specification/compute/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",
6+
"autorest_command": "autorest specification/compute/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",
77
"readme": "specification/compute/resource-manager/readme.md"
88
}

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_compute_management_client.py

Lines changed: 67 additions & 22 deletions
Large diffs are not rendered by default.

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/aio/_compute_management_client.py

Lines changed: 67 additions & 22 deletions
Large diffs are not rendered by default.

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_compute_management_client.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from typing import Any, Optional
1717

1818
from azure.core.credentials import TokenCredential
19+
from azure.core.pipeline.transport import HttpRequest, HttpResponse
1920

2021
from ._configuration import ComputeManagementClientConfiguration
2122
from .operations import AvailabilitySetsOperations
@@ -96,6 +97,24 @@ def __init__(
9697
self.virtual_machine_scale_set_vms = VirtualMachineScaleSetVMsOperations(
9798
self._client, self._config, self._serialize, self._deserialize)
9899

100+
def _send_request(self, http_request, **kwargs):
101+
# type: (HttpRequest, Any) -> HttpResponse
102+
"""Runs the network request through the client's chained policies.
103+
104+
:param http_request: The network request you want to make. Required.
105+
:type http_request: ~azure.core.pipeline.transport.HttpRequest
106+
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
107+
:return: The response of your network call. Does not do error handling on your response.
108+
:rtype: ~azure.core.pipeline.transport.HttpResponse
109+
"""
110+
path_format_arguments = {
111+
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
112+
}
113+
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
114+
stream = kwargs.pop("stream", True)
115+
pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs)
116+
return pipeline_response.http_response
117+
99118
def close(self):
100119
# type: () -> None
101120
self._client.close()

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_metadata.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"azure_arm": true,
1111
"has_lro_operations": true,
1212
"client_side_validation": false,
13-
"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\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}",
14-
"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\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
13+
"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\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}",
14+
"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\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}"
1515
},
1616
"global_parameters": {
1717
"sync": {
@@ -107,11 +107,5 @@
107107
"virtual_machines": "VirtualMachinesOperations",
108108
"virtual_machine_scale_sets": "VirtualMachineScaleSetsOperations",
109109
"virtual_machine_scale_set_vms": "VirtualMachineScaleSetVMsOperations"
110-
},
111-
"operation_mixins": {
112-
"sync_imports": "None",
113-
"async_imports": "None",
114-
"operations": {
115-
}
116110
}
117111
}

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/_compute_management_client.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from typing import Any, Optional, TYPE_CHECKING
1010

11+
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
1112
from azure.mgmt.core import AsyncARMPipelineClient
1213
from msrest import Deserializer, Serializer
1314

@@ -93,6 +94,23 @@ def __init__(
9394
self.virtual_machine_scale_set_vms = VirtualMachineScaleSetVMsOperations(
9495
self._client, self._config, self._serialize, self._deserialize)
9596

97+
async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
98+
"""Runs the network request through the client's chained policies.
99+
100+
:param http_request: The network request you want to make. Required.
101+
:type http_request: ~azure.core.pipeline.transport.HttpRequest
102+
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
103+
:return: The response of your network call. Does not do error handling on your response.
104+
:rtype: ~azure.core.pipeline.transport.AsyncHttpResponse
105+
"""
106+
path_format_arguments = {
107+
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
108+
}
109+
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
110+
stream = kwargs.pop("stream", True)
111+
pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs)
112+
return pipeline_response.http_response
113+
96114
async def close(self) -> None:
97115
await self._client.close()
98116

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/_compute_management_client_enums.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ class VirtualMachineScaleSetSkuScaleType(with_metaclass(_CaseInsensitiveEnumMeta
101101

102102
class VirtualMachineSizeTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
103103
"""Specifies the size of the virtual machine. For more information about virtual machine sizes,
104-
see `Sizes for virtual machines <https://docs.microsoft.com/azure/virtual-machines/virtual-
105-
machines-windows-sizes?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json>`_.
104+
see `Sizes for virtual machines
105+
<https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-sizes?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json>`_.
106106
:code:`<br>`:code:`<br>` The available VM sizes depend on region and availability set. For a
107107
list of available sizes use these APIs: :code:`<br>`:code:`<br>` `List all available virtual
108108
machine sizes in an availability set

0 commit comments

Comments
 (0)