Skip to content

Commit bc894f2

Browse files
author
SDKAuto
committed
CodeGen from PR 23714 in Azure/azure-rest-api-specs
Merge a4e0a89196d96721b3998f36a7958b04446298c5 into 18b397a02e5c7b856f61b6d7fb66a69c9c56c8ce
1 parent a36a123 commit bc894f2

File tree

144 files changed

+438
-334
lines changed

Some content is hidden

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

144 files changed

+438
-334
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "817e7cea0b7e3194868825cbef6d4e62a7895951",
2+
"commit": "2be8ce93bac9b70d81355e95bbac1eb7d3d65466",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.2",
55
"use": [
6-
"@autorest/[email protected].8",
6+
"@autorest/[email protected].12",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/monitor/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected].8 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/monitor/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/[email protected].12 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
1010
"readme": "specification/monitor/resource-manager/readme.md"
1111
}

sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "6.0.1"
8+
VERSION = "0.1.0"

sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2015_04_01/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "6.0.1"
9+
VERSION = "1.0.0b1"

sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2015_04_01/aio/operations/_alert_rules_operations.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Code generated by Microsoft (R) AutoRest Code Generator.
77
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
88
# --------------------------------------------------------------------------
9+
from io import IOBase
910
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload
1011

1112
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -155,7 +156,7 @@ async def create_or_update(
155156
content_type = content_type or "application/json"
156157
_json = None
157158
_content = None
158-
if isinstance(parameters, (IO, bytes)):
159+
if isinstance(parameters, (IOBase, bytes)):
159160
_content = parameters
160161
else:
161162
_json = self._serialize.body(parameters, "AlertRuleResource")
@@ -429,7 +430,7 @@ async def update(
429430
content_type = content_type or "application/json"
430431
_json = None
431432
_content = None
432-
if isinstance(alert_rules_resource, (IO, bytes)):
433+
if isinstance(alert_rules_resource, (IOBase, bytes)):
433434
_content = alert_rules_resource
434435
else:
435436
_json = self._serialize.body(alert_rules_resource, "AlertRuleResourcePatch")

sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2015_04_01/aio/operations/_autoscale_settings_operations.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Code generated by Microsoft (R) AutoRest Code Generator.
77
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
88
# --------------------------------------------------------------------------
9+
from io import IOBase
910
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload
1011

1112
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -239,7 +240,7 @@ async def create_or_update(
239240
content_type = content_type or "application/json"
240241
_json = None
241242
_content = None
242-
if isinstance(parameters, (IO, bytes)):
243+
if isinstance(parameters, (IOBase, bytes)):
243244
_content = parameters
244245
else:
245246
_json = self._serialize.body(parameters, "AutoscaleSettingResource")
@@ -517,7 +518,7 @@ async def update(
517518
content_type = content_type or "application/json"
518519
_json = None
519520
_content = None
520-
if isinstance(autoscale_setting_resource, (IO, bytes)):
521+
if isinstance(autoscale_setting_resource, (IOBase, bytes)):
521522
_content = autoscale_setting_resource
522523
else:
523524
_json = self._serialize.body(autoscale_setting_resource, "AutoscaleSettingResourcePatch")

sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2015_04_01/operations/_alert_rules_operations.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Code generated by Microsoft (R) AutoRest Code Generator.
77
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
88
# --------------------------------------------------------------------------
9+
from io import IOBase
910
from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload
1011

1112
from azure.core.exceptions import (
@@ -336,7 +337,7 @@ def create_or_update(
336337
content_type = content_type or "application/json"
337338
_json = None
338339
_content = None
339-
if isinstance(parameters, (IO, bytes)):
340+
if isinstance(parameters, (IOBase, bytes)):
340341
_content = parameters
341342
else:
342343
_json = self._serialize.body(parameters, "AlertRuleResource")
@@ -610,7 +611,7 @@ def update(
610611
content_type = content_type or "application/json"
611612
_json = None
612613
_content = None
613-
if isinstance(alert_rules_resource, (IO, bytes)):
614+
if isinstance(alert_rules_resource, (IOBase, bytes)):
614615
_content = alert_rules_resource
615616
else:
616617
_json = self._serialize.body(alert_rules_resource, "AlertRuleResourcePatch")

sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2015_04_01/operations/_autoscale_settings_operations.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Code generated by Microsoft (R) AutoRest Code Generator.
77
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
88
# --------------------------------------------------------------------------
9+
from io import IOBase
910
from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload
1011

1112
from azure.core.exceptions import (
@@ -426,7 +427,7 @@ def create_or_update(
426427
content_type = content_type or "application/json"
427428
_json = None
428429
_content = None
429-
if isinstance(parameters, (IO, bytes)):
430+
if isinstance(parameters, (IOBase, bytes)):
430431
_content = parameters
431432
else:
432433
_json = self._serialize.body(parameters, "AutoscaleSettingResource")
@@ -704,7 +705,7 @@ def update(
704705
content_type = content_type or "application/json"
705706
_json = None
706707
_content = None
707-
if isinstance(autoscale_setting_resource, (IO, bytes)):
708+
if isinstance(autoscale_setting_resource, (IOBase, bytes)):
708709
_content = autoscale_setting_resource
709710
else:
710711
_json = self._serialize.body(autoscale_setting_resource, "AutoscaleSettingResourcePatch")

sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2015_07_01/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "6.0.1"
9+
VERSION = "1.0.0b1"

sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2015_07_01/aio/operations/_alert_rules_operations.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Code generated by Microsoft (R) AutoRest Code Generator.
77
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
88
# --------------------------------------------------------------------------
9+
from io import IOBase
910
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload
1011

1112
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -155,7 +156,7 @@ async def create_or_update(
155156
content_type = content_type or "application/json"
156157
_json = None
157158
_content = None
158-
if isinstance(parameters, (IO, bytes)):
159+
if isinstance(parameters, (IOBase, bytes)):
159160
_content = parameters
160161
else:
161162
_json = self._serialize.body(parameters, "AlertRuleResource")
@@ -429,7 +430,7 @@ async def update(
429430
content_type = content_type or "application/json"
430431
_json = None
431432
_content = None
432-
if isinstance(alert_rules_resource, (IO, bytes)):
433+
if isinstance(alert_rules_resource, (IOBase, bytes)):
433434
_content = alert_rules_resource
434435
else:
435436
_json = self._serialize.body(alert_rules_resource, "AlertRuleResourcePatch")

sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2015_07_01/aio/operations/_service_diagnostic_settings_operations.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Code generated by Microsoft (R) AutoRest Code Generator.
77
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
88
# --------------------------------------------------------------------------
9+
from io import IOBase
910
from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload
1011

1112
from azure.core.exceptions import (
@@ -187,7 +188,7 @@ async def create_or_update(
187188
content_type = content_type or "application/json"
188189
_json = None
189190
_content = None
190-
if isinstance(parameters, (IO, bytes)):
191+
if isinstance(parameters, (IOBase, bytes)):
191192
_content = parameters
192193
else:
193194
_json = self._serialize.body(parameters, "ServiceDiagnosticSettingsResource")

0 commit comments

Comments
 (0)