Skip to content

Commit

Permalink
CodeGen from PR 13539 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge c14bc82228e21f4e631f2ae33b530a6ec017ead3 into 726a387
  • Loading branch information
SDKAuto committed Mar 24, 2021
1 parent 8f691b2 commit 111558d
Show file tree
Hide file tree
Showing 18 changed files with 1,937 additions and 263 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
# --------------------------------------------------------------------------

from ._power_bi_dedicated import PowerBIDedicated
from ._version import VERSION

__version__ = VERSION
__all__ = ['PowerBIDedicated']

try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMHttpLoggingPolicy

from ._version import VERSION

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from typing import Any

from azure.core.credentials import TokenCredential

VERSION = "unknown"

class PowerBIDedicatedConfiguration(Configuration):
"""Configuration for PowerBIDedicated.
Expand Down Expand Up @@ -48,7 +47,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2017-10-01"
self.api_version = "2021-01-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-powerbidedicated/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"chosen_version": "2021-01-01",
"total_api_version_list": ["2021-01-01"],
"client": {
"name": "PowerBIDedicated",
"filename": "_power_bi_dedicated",
"description": "PowerBI Dedicated Web API provides a RESTful set of web services that enables users to create, retrieve, update, and delete Power BI dedicated capacities.",
"base_url": "\u0027https://management.azure.com\u0027",
"custom_base_url": null,
"azure_arm": true,
"has_lro_operations": true,
"client_side_validation": false
},
"global_parameters": {
"sync": {
"credential": {
"signature": "credential, # type: \"TokenCredential\"",
"description": "Credential needed for the client to connect to Azure.",
"docstring_type": "~azure.core.credentials.TokenCredential",
"required": true
},
"subscription_id": {
"signature": "subscription_id, # type: str",
"description": "A unique identifier for a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.",
"docstring_type": "str",
"required": true
}
},
"async": {
"credential": {
"signature": "credential, # type: \"AsyncTokenCredential\"",
"description": "Credential needed for the client to connect to Azure.",
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
"required": true
},
"subscription_id": {
"signature": "subscription_id, # type: str",
"description": "A unique identifier for a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.",
"docstring_type": "str",
"required": true
}
},
"constant": {
},
"call": "credential, subscription_id"
},
"config": {
"credential": true,
"credential_scopes": ["https://management.azure.com/.default"],
"credential_default_policy_type": "BearerTokenCredentialPolicy",
"credential_default_policy_type_has_async_version": true,
"credential_key_header_name": null
},
"operation_groups": {
"capacities": "CapacitiesOperations",
"operations": "Operations",
"auto_scale_vcores": "AutoScaleVCoresOperations"
},
"operation_mixins": {
},
"sync_imports": "None",
"async_imports": "None"
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from ._configuration import PowerBIDedicatedConfiguration
from .operations import CapacitiesOperations
from .operations import Operations
from .operations import AutoScaleVCoresOperations
from . import models


Expand All @@ -30,6 +31,8 @@ class PowerBIDedicated(object):
:vartype capacities: azure.mgmt.powerbidedicated.operations.CapacitiesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.powerbidedicated.operations.Operations
:ivar auto_scale_vcores: AutoScaleVCoresOperations operations
:vartype auto_scale_vcores: azure.mgmt.powerbidedicated.operations.AutoScaleVCoresOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: A unique identifier for a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
Expand Down Expand Up @@ -60,6 +63,8 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize)
self.auto_scale_vcores = AutoScaleVCoresOperations(
self._client, self._config, self._serialize, self._deserialize)

def close(self):
# type: () -> None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMHttpLoggingPolicy

from .._version import VERSION

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials_async import AsyncTokenCredential

VERSION = "unknown"

class PowerBIDedicatedConfiguration(Configuration):
"""Configuration for PowerBIDedicated.
Expand Down Expand Up @@ -45,7 +44,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2017-10-01"
self.api_version = "2021-01-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-powerbidedicated/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from ._configuration import PowerBIDedicatedConfiguration
from .operations import CapacitiesOperations
from .operations import Operations
from .operations import AutoScaleVCoresOperations
from .. import models


Expand All @@ -28,6 +29,8 @@ class PowerBIDedicated(object):
:vartype capacities: azure.mgmt.powerbidedicated.aio.operations.CapacitiesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.powerbidedicated.aio.operations.Operations
:ivar auto_scale_vcores: AutoScaleVCoresOperations operations
:vartype auto_scale_vcores: azure.mgmt.powerbidedicated.aio.operations.AutoScaleVCoresOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: A unique identifier for a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
Expand Down Expand Up @@ -57,6 +60,8 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize)
self.auto_scale_vcores = AutoScaleVCoresOperations(
self._client, self._config, self._serialize, self._deserialize)

async def close(self) -> None:
await self._client.close()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@

from ._capacities_operations import CapacitiesOperations
from ._operations import Operations
from ._auto_scale_vcores_operations import AutoScaleVCoresOperations

__all__ = [
'CapacitiesOperations',
'Operations',
'AutoScaleVCoresOperations',
]
Loading

0 comments on commit 111558d

Please sign in to comment.