diff --git a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/CHANGELOG.md b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/CHANGELOG.md index d6ce9960aa8c..d10dd0ae4b7d 100644 --- a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/CHANGELOG.md +++ b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/CHANGELOG.md @@ -1,5 +1,27 @@ # Release History +## 2.0.0 (2026-07-29) + +### Features Added + + - Added model `TrackedResource` + +### Breaking Changes + + - This version introduces new hybrid models which have dual dictionary and model nature. Please follow https://aka.ms/azsdk/python/migrate/hybrid-models for migration. + - Renamed client `PowerBIDedicated` to `PowerBIDedicatedMgmtClient` + - Renamed enum `IdentityType` to `CreatedByType` + - Model `AutoScaleVCore` moved instance variable `capacity_limit`, `capacity_object_id` and `provisioning_state` under property `properties` whose type is `AutoScaleVCoreProperties` + - Model `AutoScaleVCoreUpdateParameters` moved instance variable `capacity_limit` under property `properties` whose type is `AutoScaleVCoreMutableProperties` + - Model `DedicatedCapacity` moved instance variable `administration`, `friendly_name`, `mode`, `provisioning_state`, `state` and `tenant_id` under property `properties` whose type is `DedicatedCapacityProperties` + - Model `DedicatedCapacityUpdateParameters` moved instance variable `administration`, `friendly_name`, `mode` and `tenant_id` under property `properties` whose type is `DedicatedCapacityMutableProperties` + - Model `Resource` deleted or renamed its instance variable `location` + - Model `Resource` deleted or renamed its instance variable `tags` + +### Other Changes + + - Deleted model `AutoScaleVCoreListResult`/`DedicatedCapacities`/`OperationListResult` which actually were not used by SDK users + ## 1.1.0b2 (2026-07-06) ### Features Added diff --git a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/_metadata.json b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/_metadata.json index 0b7828bc9cbc..ddf0bbb3008a 100644 --- a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/_metadata.json +++ b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/_metadata.json @@ -3,9 +3,9 @@ "apiVersions": { "Microsoft.PowerBIDedicated": "2021-01-01" }, - "commit": "3d1de464b5576fa149aed429795f6030313e31bb", + "commit": "801a60cdad2669e8f824fedfbabbfe7f7093b940", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "typespec_src": "specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/PowerBIDedicated", - "emitterVersion": "0.63.2", - "httpClientPythonVersion": "^0.34.0" + "emitterVersion": "0.63.3", + "httpClientPythonVersion": "^0.34.2" } \ No newline at end of file diff --git a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/api.md b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/api.md index 8146f67e543d..3c96fa625b96 100644 --- a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/api.md +++ b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/api.md @@ -1242,15 +1242,6 @@ namespace azure.mgmt.powerbidedicated.types type: str - class azure.mgmt.powerbidedicated.types.CheckCapacityNameAvailabilityResult(TypedDict, total=False): - key "message": str - key "nameAvailable": bool - key "reason": str - message: str - name_available: bool - reason: str - - class azure.mgmt.powerbidedicated.types.DedicatedCapacity(TrackedResource): key "id": str key "location": Required[str] @@ -1307,77 +1298,6 @@ namespace azure.mgmt.powerbidedicated.types tags: dict[str, str] - class azure.mgmt.powerbidedicated.types.ErrorResponse(TypedDict, total=False): - key "error": ForwardRef('ErrorResponseError', module='types') - error: ErrorResponseError - - - class azure.mgmt.powerbidedicated.types.ErrorResponseError(TypedDict, total=False): - key "code": str - key "message": str - code: str - message: str - - - class azure.mgmt.powerbidedicated.types.LogSpecification(TypedDict, total=False): - key "blobDuration": str - key "displayName": str - key "name": str - blob_duration: str - display_name: str - name: str - - - class azure.mgmt.powerbidedicated.types.MetricSpecification(TypedDict, total=False): - key "aggregationType": str - key "displayDescription": str - key "displayName": str - key "metricFilterPattern": str - key "name": str - key "unit": str - aggregation_type: str - dimensions: list[MetricSpecificationDimensionsItem] - display_description: str - display_name: str - metric_filter_pattern: str - name: str - unit: str - - - class azure.mgmt.powerbidedicated.types.MetricSpecificationDimensionsItem(TypedDict, total=False): - key "displayName": str - key "name": str - display_name: str - name: str - - - class azure.mgmt.powerbidedicated.types.Operation(TypedDict, total=False): - key "display": ForwardRef('OperationDisplay', module='types') - key "name": str - key "origin": str - key "properties": ForwardRef('OperationProperties', module='types') - display: OperationDisplay - name: str - origin: str - properties: OperationProperties - - - class azure.mgmt.powerbidedicated.types.OperationDisplay(TypedDict, total=False): - key "description": str - key "operation": str - key "provider": str - key "resource": str - description: str - operation: str - provider: str - resource: str - - - class azure.mgmt.powerbidedicated.types.OperationProperties(TypedDict, total=False): - key "serviceSpecification": ForwardRef('ServiceSpecification', module='types') - service_specification: ServiceSpecification - - class azure.mgmt.powerbidedicated.types.Resource(TypedDict, total=False): key "id": str key "name": str @@ -1389,28 +1309,6 @@ namespace azure.mgmt.powerbidedicated.types type: str - class azure.mgmt.powerbidedicated.types.ServiceSpecification(TypedDict, total=False): - logSpecifications: list[LogSpecification] - log_specifications: list[LogSpecification] - metricSpecifications: list[MetricSpecification] - metric_specifications: list[MetricSpecification] - - - class azure.mgmt.powerbidedicated.types.SkuDetailsForExistingResource(TypedDict, total=False): - key "resourceType": str - key "sku": ForwardRef('CapacitySku', module='types') - resource_type: str - sku: CapacitySku - - - class azure.mgmt.powerbidedicated.types.SkuEnumerationForExistingResourceResult(TypedDict, total=False): - value: list[SkuDetailsForExistingResource] - - - class azure.mgmt.powerbidedicated.types.SkuEnumerationForNewResourceResult(TypedDict, total=False): - value: list[CapacitySku] - - class azure.mgmt.powerbidedicated.types.SystemData(TypedDict, total=False): key "createdAt": str key "createdBy": str diff --git a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/api.metadata.yml b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/api.metadata.yml index 80da8209bece..e4fc75f112e6 100644 --- a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/api.metadata.yml +++ b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/api.metadata.yml @@ -1,3 +1,3 @@ -apiMdSha256: f2938ae3a73837e011db46c89ff88aeef854d2eb35fae1f25c78ed33b87bb1c9 -parserVersion: 0.3.28 -pythonVersion: 3.13.13 +apiMdSha256: 5e94e62b3c66c3823e70a5435ba469efde1ebcd85a0c3888e4d4fe7c85680246 +parserVersion: 0.3.30 +pythonVersion: 3.13.14 diff --git a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/apiview-properties.json b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/apiview-properties.json index e98b1b0f97c0..3f0234cb6a49 100644 --- a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/apiview-properties.json +++ b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/apiview-properties.json @@ -73,5 +73,5 @@ "azure.mgmt.powerbidedicated.operations.AutoScaleVCoresOperations.list_by_subscription": "Microsoft.PowerBIDedicated.AutoScaleVCores.listBySubscription", "azure.mgmt.powerbidedicated.aio.operations.AutoScaleVCoresOperations.list_by_subscription": "Microsoft.PowerBIDedicated.AutoScaleVCores.listBySubscription" }, - "CrossLanguageVersion": "b30688221632" + "CrossLanguageVersion": "b31965f7c3b6" } \ No newline at end of file diff --git a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/azure/mgmt/powerbidedicated/_utils/model_base.py b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/azure/mgmt/powerbidedicated/_utils/model_base.py index b93f5120d517..0f2c5bdfe70f 100644 --- a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/azure/mgmt/powerbidedicated/_utils/model_base.py +++ b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/azure/mgmt/powerbidedicated/_utils/model_base.py @@ -458,21 +458,21 @@ def __ne__(self, other: typing.Any) -> bool: def keys(self) -> typing.KeysView[str]: """ - :returns: a set-like object providing a view on D's keys + :returns: a set-like object providing a view on the mapping's keys :rtype: ~typing.KeysView """ return self._data.keys() def values(self) -> typing.ValuesView[typing.Any]: """ - :returns: an object providing a view on D's values + :returns: an object providing a view on the mapping's values :rtype: ~typing.ValuesView """ return self._data.values() def items(self) -> typing.ItemsView[str, typing.Any]: """ - :returns: set-like object providing a view on D's items + :returns: a set-like object providing a view on the mapping's items :rtype: ~typing.ItemsView """ return self._data.items() @@ -482,7 +482,7 @@ def get(self, key: str, default: typing.Any = None) -> typing.Any: Get the value for key if key is in the dictionary, else default. :param str key: The key to look up. :param any default: The value to return if key is not in the dictionary. Defaults to None - :returns: D[k] if k in D, else d. + :returns: The value for key if key is in the dictionary, else default. :rtype: any """ try: @@ -517,19 +517,19 @@ def popitem(self) -> tuple[str, typing.Any]: Removes and returns some (key, value) pair :returns: The (key, value) pair. :rtype: tuple - :raises KeyError: if D is empty. + :raises KeyError: if the dictionary is empty. """ return self._data.popitem() def clear(self) -> None: """ - Remove all items from D. + Remove all items from the dictionary. """ self._data.clear() def update(self, *args: typing.Any, **kwargs: typing.Any) -> None: # pylint: disable=arguments-differ """ - Updates D from mapping/iterable E and F. + Update the dictionary from a mapping or an iterable of key-value pairs. :param any args: Either a mapping object or an iterable of key-value pairs. """ self._data.update(*args, **kwargs) @@ -542,10 +542,11 @@ def setdefault(self, key: str, default: typing.Any) -> typing.Any: ... # pylint def setdefault(self, key: str, default: typing.Any = _UNSET) -> typing.Any: """ - Same as calling D.get(k, d), and setting D[k]=d if k not found + Return the value for key if key is in the dictionary; otherwise set the key to + default and return default. :param str key: The key to look up. :param any default: The value to set if key is not in the dictionary - :returns: D[k] if k in D, else d. + :returns: The value for key if key is in the dictionary, else default. :rtype: any """ if default is _UNSET: diff --git a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/azure/mgmt/powerbidedicated/_version.py b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/azure/mgmt/powerbidedicated/_version.py index f6cd39818b76..8f2350dd3b0c 100644 --- a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/azure/mgmt/powerbidedicated/_version.py +++ b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/azure/mgmt/powerbidedicated/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "1.1.0b2" +VERSION = "2.0.0" diff --git a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/azure/mgmt/powerbidedicated/types.py b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/azure/mgmt/powerbidedicated/types.py index 75b86ce5db57..c6fbf451ad04 100644 --- a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/azure/mgmt/powerbidedicated/types.py +++ b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/azure/mgmt/powerbidedicated/types.py @@ -211,25 +211,6 @@ class CheckCapacityNameAvailabilityParameters(TypedDict, total=False): """The resource type of PowerBI dedicated.""" -class CheckCapacityNameAvailabilityResult(TypedDict, total=False): - """The checking result of capacity name availability. - - :ivar name_available: Indicator of availability of the capacity name. - :vartype name_available: bool - :ivar reason: The reason of unavailability. - :vartype reason: str - :ivar message: The detailed message of the request unavailability. - :vartype message: str - """ - - nameAvailable: bool - """Indicator of availability of the capacity name.""" - reason: str - """The reason of unavailability.""" - message: str - """The detailed message of the request unavailability.""" - - class DedicatedCapacity(TrackedResource): """Represents an instance of a Dedicated Capacity resource. @@ -357,210 +338,6 @@ class DedicatedCapacityUpdateParameters(TypedDict, total=False): """Properties of the provision operation request.""" -class ErrorResponse(TypedDict, total=False): - """The error object. - - :ivar error: The error object. - :vartype error: "ErrorResponseError" - """ - - error: "ErrorResponseError" - """The error object.""" - - -class ErrorResponseError(TypedDict, total=False): - """ErrorResponseError. - - :ivar code: Error code. - :vartype code: str - :ivar message: Error message indicating why the operation failed. - :vartype message: str - """ - - code: str - """Error code.""" - message: str - """Error message indicating why the operation failed.""" - - -class LogSpecification(TypedDict, total=False): - """Log specification for exposing diagnostic logs to shoebox. - - :ivar name: Name of the log. - :vartype name: str - :ivar display_name: Localizable name of the log. - :vartype display_name: str - :ivar blob_duration: Blob duration for the log. - :vartype blob_duration: str - """ - - name: str - """Name of the log.""" - displayName: str - """Localizable name of the log.""" - blobDuration: str - """Blob duration for the log.""" - - -class MetricSpecification(TypedDict, total=False): - """Metric specification for exposing performance metrics to shoebox. - - :ivar name: Metric name. - :vartype name: str - :ivar display_name: Localizable metric name. - :vartype display_name: str - :ivar display_description: Localizable description of metric. - :vartype display_description: str - :ivar unit: Unit for the metric. - :vartype unit: str - :ivar aggregation_type: Aggregation type for the metric. - :vartype aggregation_type: str - :ivar metric_filter_pattern: Pattern used to filter the metric. - :vartype metric_filter_pattern: str - :ivar dimensions: For describing multi dimensional metrics. - :vartype dimensions: list["MetricSpecificationDimensionsItem"] - """ - - name: str - """Metric name.""" - displayName: str - """Localizable metric name.""" - displayDescription: str - """Localizable description of metric.""" - unit: str - """Unit for the metric.""" - aggregationType: str - """Aggregation type for the metric.""" - metricFilterPattern: str - """Pattern used to filter the metric.""" - dimensions: list["MetricSpecificationDimensionsItem"] - """For describing multi dimensional metrics.""" - - -class MetricSpecificationDimensionsItem(TypedDict, total=False): - """MetricSpecificationDimensionsItem. - - :ivar name: Dimension of the metric. - :vartype name: str - :ivar display_name: Localizable dimension of the metric. - :vartype display_name: str - """ - - name: str - """Dimension of the metric.""" - displayName: str - """Localizable dimension of the metric.""" - - -class Operation(TypedDict, total=False): - """Capacities REST API operation. - - :ivar name: Operation name: {provider}/{resource}/{operation}. - :vartype name: str - :ivar display: The object that represents the operation. - :vartype display: "OperationDisplay" - :ivar origin: Origin of the operation. - :vartype origin: str - :ivar properties: Additional properties to expose performance metrics to shoebox. - :vartype properties: "OperationProperties" - """ - - name: str - """Operation name: {provider}/{resource}/{operation}.""" - display: "OperationDisplay" - """The object that represents the operation.""" - origin: str - """Origin of the operation.""" - properties: "OperationProperties" - """Additional properties to expose performance metrics to shoebox.""" - - -class OperationDisplay(TypedDict, total=False): - """OperationDisplay. - - :ivar provider: Service provider: Microsoft.PowerBIDedicated. - :vartype provider: str - :ivar resource: Resource on which the operation is performed: capacity, etc. - :vartype resource: str - :ivar operation: Operation type: create, update, delete, etc. - :vartype operation: str - :ivar description: Localized description of the operation. - :vartype description: str - """ - - provider: str - """Service provider: Microsoft.PowerBIDedicated.""" - resource: str - """Resource on which the operation is performed: capacity, etc.""" - operation: str - """Operation type: create, update, delete, etc.""" - description: str - """Localized description of the operation.""" - - -class OperationProperties(TypedDict, total=False): - """Additional properties to expose performance metrics to shoebox. - - :ivar service_specification: Service specification for exposing performance metrics to shoebox. - :vartype service_specification: "ServiceSpecification" - """ - - serviceSpecification: "ServiceSpecification" - """Service specification for exposing performance metrics to shoebox.""" - - -class ServiceSpecification(TypedDict, total=False): - """Service specification for exposing performance metrics to shoebox. - - :ivar metric_specifications: Metric specifications for exposing performance metrics to shoebox. - :vartype metric_specifications: list["MetricSpecification"] - :ivar log_specifications: Log specifications for exposing diagnostic logs to shoebox. - :vartype log_specifications: list["LogSpecification"] - """ - - metricSpecifications: list["MetricSpecification"] - """Metric specifications for exposing performance metrics to shoebox.""" - logSpecifications: list["LogSpecification"] - """Log specifications for exposing diagnostic logs to shoebox.""" - - -class SkuDetailsForExistingResource(TypedDict, total=False): - """An object that represents SKU details for existing resources. - - :ivar resource_type: The resource type. - :vartype resource_type: str - :ivar sku: The SKU in SKU details for existing resources. - :vartype sku: "CapacitySku" - """ - - resourceType: str - """The resource type.""" - sku: "CapacitySku" - """The SKU in SKU details for existing resources.""" - - -class SkuEnumerationForExistingResourceResult(TypedDict, total=False): - """An object that represents enumerating SKUs for existing resources. - - :ivar value: The collection of available SKUs for existing resources. - :vartype value: list["SkuDetailsForExistingResource"] - """ - - value: list["SkuDetailsForExistingResource"] - """The collection of available SKUs for existing resources.""" - - -class SkuEnumerationForNewResourceResult(TypedDict, total=False): - """An object that represents enumerating SKUs for new resources. - - :ivar value: The collection of available SKUs for new resources. - :vartype value: list["CapacitySku"] - """ - - value: list["CapacitySku"] - """The collection of available SKUs for new resources.""" - - class SystemData(TypedDict, total=False): """Metadata pertaining to creation and last modification of the resource. diff --git a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/dev_requirements.txt b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/dev_requirements.txt index a4eaf63f2d63..ad5c14f94409 100644 --- a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/dev_requirements.txt +++ b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/dev_requirements.txt @@ -1,2 +1,4 @@ -e ../../../eng/tools/azure-sdk-tools aiohttp + +azure-identity \ No newline at end of file diff --git a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/pyproject.toml b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/pyproject.toml index a6538624fb45..35501367423d 100644 --- a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/pyproject.toml +++ b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/pyproject.toml @@ -13,7 +13,7 @@ authors = [ description = "Microsoft Azure Powerbidedicated Management Client Library for Python" license = "MIT" classifiers = [ - "Development Status :: 4 - Beta", + "Development Status :: 5 - Production/Stable", "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3", @@ -78,7 +78,7 @@ verifytypes = false package_name = "azure-mgmt-powerbidedicated" package_pprint_name = "Power BI Dedicated Management" package_doc_id = "" -is_stable = false +is_stable = true title = "PowerBIDedicatedMgmtClient" package_nspkg = "azure-mgmt-nspkg" is_arm = true diff --git a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/tests/conftest.py b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/tests/conftest.py new file mode 100644 index 000000000000..f4d6d338e1b0 --- /dev/null +++ b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/tests/conftest.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import os +import pytest +from dotenv import load_dotenv +from devtools_testutils import ( + test_proxy, + add_general_regex_sanitizer, + add_body_key_sanitizer, + add_header_regex_sanitizer, +) + +load_dotenv() + + +# For security, please avoid record sensitive identity information in recordings +@pytest.fixture(scope="session", autouse=True) +def add_sanitizers(test_proxy): + powerbidedicatedmgmt_subscription_id = os.environ.get( + "AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000" + ) + powerbidedicatedmgmt_tenant_id = os.environ.get("AZURE_TENANT_ID", "00000000-0000-0000-0000-000000000000") + powerbidedicatedmgmt_client_id = os.environ.get("AZURE_CLIENT_ID", "00000000-0000-0000-0000-000000000000") + powerbidedicatedmgmt_client_secret = os.environ.get("AZURE_CLIENT_SECRET", "00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer( + regex=powerbidedicatedmgmt_subscription_id, value="00000000-0000-0000-0000-000000000000" + ) + add_general_regex_sanitizer(regex=powerbidedicatedmgmt_tenant_id, value="00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer(regex=powerbidedicatedmgmt_client_id, value="00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer(regex=powerbidedicatedmgmt_client_secret, value="00000000-0000-0000-0000-000000000000") + + add_header_regex_sanitizer(key="Set-Cookie", value="[set-cookie;]") + add_header_regex_sanitizer(key="Cookie", value="cookie;") + add_body_key_sanitizer(json_path="$..access_token", value="access_token") diff --git a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/tests/test_power_bi_dedicated_mgmt_auto_scale_vcores_operations_async_test.py b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/tests/test_power_bi_dedicated_mgmt_auto_scale_vcores_operations_async_test.py new file mode 100644 index 000000000000..ccb4e628c5a9 --- /dev/null +++ b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/tests/test_power_bi_dedicated_mgmt_auto_scale_vcores_operations_async_test.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.powerbidedicated.aio import PowerBIDedicatedMgmtClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer +from devtools_testutils.aio import recorded_by_proxy_async + +AZURE_LOCATION = "eastus" + + +@pytest.mark.live_test_only +class TestPowerBIDedicatedMgmtAutoScaleVCoresOperationsAsync(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(PowerBIDedicatedMgmtClient, is_async=True) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_auto_scale_vcores_list_by_subscription(self, resource_group): + response = self.client.auto_scale_vcores.list_by_subscription() + result = [r async for r in response] + assert len(result) >= 0 diff --git a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/tests/test_power_bi_dedicated_mgmt_auto_scale_vcores_operations_test.py b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/tests/test_power_bi_dedicated_mgmt_auto_scale_vcores_operations_test.py new file mode 100644 index 000000000000..e0a8c4e94e81 --- /dev/null +++ b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/tests/test_power_bi_dedicated_mgmt_auto_scale_vcores_operations_test.py @@ -0,0 +1,26 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.powerbidedicated import PowerBIDedicatedMgmtClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy + +AZURE_LOCATION = "eastus" + + +@pytest.mark.live_test_only +class TestPowerBIDedicatedMgmtAutoScaleVCoresOperations(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(PowerBIDedicatedMgmtClient) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_auto_scale_vcores_list_by_subscription(self, resource_group): + response = self.client.auto_scale_vcores.list_by_subscription() + result = [r for r in response] + assert len(result) >= 0 diff --git a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/tests/test_power_bi_dedicated_mgmt_capacities_operations_async_test.py b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/tests/test_power_bi_dedicated_mgmt_capacities_operations_async_test.py new file mode 100644 index 000000000000..881541fafeb9 --- /dev/null +++ b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/tests/test_power_bi_dedicated_mgmt_capacities_operations_async_test.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.powerbidedicated.aio import PowerBIDedicatedMgmtClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer +from devtools_testutils.aio import recorded_by_proxy_async + +AZURE_LOCATION = "eastus" + + +@pytest.mark.live_test_only +class TestPowerBIDedicatedMgmtCapacitiesOperationsAsync(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(PowerBIDedicatedMgmtClient, is_async=True) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_capacities_list(self, resource_group): + response = self.client.capacities.list() + result = [r async for r in response] + assert len(result) >= 0 + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_capacities_list_skus(self, resource_group): + response = await self.client.capacities.list_skus() + + assert response is not None diff --git a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/tests/test_power_bi_dedicated_mgmt_capacities_operations_test.py b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/tests/test_power_bi_dedicated_mgmt_capacities_operations_test.py new file mode 100644 index 000000000000..6cd89b5def08 --- /dev/null +++ b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/tests/test_power_bi_dedicated_mgmt_capacities_operations_test.py @@ -0,0 +1,33 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.powerbidedicated import PowerBIDedicatedMgmtClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy + +AZURE_LOCATION = "eastus" + + +@pytest.mark.live_test_only +class TestPowerBIDedicatedMgmtCapacitiesOperations(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(PowerBIDedicatedMgmtClient) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_capacities_list(self, resource_group): + response = self.client.capacities.list() + result = [r for r in response] + assert len(result) >= 0 + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_capacities_list_skus(self, resource_group): + response = self.client.capacities.list_skus() + + assert response is not None diff --git a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/tests/test_power_bi_dedicated_mgmt_operations_async_test.py b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/tests/test_power_bi_dedicated_mgmt_operations_async_test.py new file mode 100644 index 000000000000..9c72b4706303 --- /dev/null +++ b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/tests/test_power_bi_dedicated_mgmt_operations_async_test.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.powerbidedicated.aio import PowerBIDedicatedMgmtClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer +from devtools_testutils.aio import recorded_by_proxy_async + +AZURE_LOCATION = "eastus" + + +@pytest.mark.live_test_only +class TestPowerBIDedicatedMgmtOperationsAsync(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(PowerBIDedicatedMgmtClient, is_async=True) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_operations_list(self, resource_group): + response = self.client.operations.list() + result = [r async for r in response] + assert len(result) >= 0 diff --git a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/tests/test_power_bi_dedicated_mgmt_operations_test.py b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/tests/test_power_bi_dedicated_mgmt_operations_test.py new file mode 100644 index 000000000000..03e4d79013f7 --- /dev/null +++ b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/tests/test_power_bi_dedicated_mgmt_operations_test.py @@ -0,0 +1,26 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.powerbidedicated import PowerBIDedicatedMgmtClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy + +AZURE_LOCATION = "eastus" + + +@pytest.mark.live_test_only +class TestPowerBIDedicatedMgmtOperations(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(PowerBIDedicatedMgmtClient) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_operations_list(self, resource_group): + response = self.client.operations.list() + result = [r for r in response] + assert len(result) >= 0 diff --git a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/tsp-location.yaml b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/tsp-location.yaml index 7c4664b49de2..5457e7363f03 100644 --- a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/tsp-location.yaml +++ b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/PowerBIDedicated -commit: 3d1de464b5576fa149aed429795f6030313e31bb +commit: 801a60cdad2669e8f824fedfbabbfe7f7093b940 repo: Azure/azure-rest-api-specs additionalDirectories: