diff --git a/sdk/powerbidedicated/arm-powerbidedicated/LICENSE.txt b/sdk/powerbidedicated/arm-powerbidedicated/LICENSE.txt index ea8fb1516028..2d3163745319 100644 --- a/sdk/powerbidedicated/arm-powerbidedicated/LICENSE.txt +++ b/sdk/powerbidedicated/arm-powerbidedicated/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 Microsoft +Copyright (c) 2021 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/powerbidedicated/arm-powerbidedicated/README.md b/sdk/powerbidedicated/arm-powerbidedicated/README.md index 350863bc9ba0..d9166cd10568 100644 --- a/sdk/powerbidedicated/arm-powerbidedicated/README.md +++ b/sdk/powerbidedicated/arm-powerbidedicated/README.md @@ -1,11 +1,11 @@ ## Azure PowerBIDedicatedManagementClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for PowerBIDedicatedManagementClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for PowerBIDedicatedManagementClient. ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites @@ -21,7 +21,6 @@ Install both packages using the below command: ```bash npm install --save @azure/arm-powerbidedicated @azure/identity ``` - > **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. @@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/ In the below samples, we pass the credential and the Azure subscription id to instantiate the client. Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. - #### nodejs - Authentication, client creation, and getDetails capacities as an example written in JavaScript. ##### Sample code @@ -87,7 +85,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const credential = new InteractiveBrowserCredential( { clientId: "", - tenantId: "" + tenant: "" }); const client = new Azure.ArmPowerbidedicated.PowerBIDedicatedManagementClient(creds, subscriptionId); const resourceGroupName = "testresourceGroupName"; diff --git a/sdk/powerbidedicated/arm-powerbidedicated/package.json b/sdk/powerbidedicated/arm-powerbidedicated/package.json index 5bbfc123c82d..5035e4d15ad8 100644 --- a/sdk/powerbidedicated/arm-powerbidedicated/package.json +++ b/sdk/powerbidedicated/arm-powerbidedicated/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/powerbidedicated/arm-powerbidedicated", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/powerbidedicated/arm-powerbidedicated", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/powerbidedicated/arm-powerbidedicated/rollup.config.js b/sdk/powerbidedicated/arm-powerbidedicated/rollup.config.js index 0d8f15137d00..441dae3f4882 100644 --- a/sdk/powerbidedicated/arm-powerbidedicated/rollup.config.js +++ b/sdk/powerbidedicated/arm-powerbidedicated/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/powerbidedicated/arm-powerbidedicated/src/models/autoScaleVCoresMappers.ts b/sdk/powerbidedicated/arm-powerbidedicated/src/models/autoScaleVCoresMappers.ts new file mode 100644 index 000000000000..b4fc5673ed46 --- /dev/null +++ b/sdk/powerbidedicated/arm-powerbidedicated/src/models/autoScaleVCoresMappers.ts @@ -0,0 +1,22 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + AutoScaleVCore, + AutoScaleVCoreListResult, + AutoScaleVCoreSku, + AutoScaleVCoreUpdateParameters, + BaseResource, + CapacitySku, + DedicatedCapacity, + DedicatedCapacityAdministrators, + ErrorResponse, + ErrorResponseError, + Resource, + SystemData +} from "../models/mappers"; diff --git a/sdk/powerbidedicated/arm-powerbidedicated/src/models/capacitiesMappers.ts b/sdk/powerbidedicated/arm-powerbidedicated/src/models/capacitiesMappers.ts index ef2cac8815a4..aef2321c9d62 100644 --- a/sdk/powerbidedicated/arm-powerbidedicated/src/models/capacitiesMappers.ts +++ b/sdk/powerbidedicated/arm-powerbidedicated/src/models/capacitiesMappers.ts @@ -1,23 +1,27 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + AutoScaleVCore, + AutoScaleVCoreSku, BaseResource, + CapacitySku, CheckCapacityNameAvailabilityParameters, CheckCapacityNameAvailabilityResult, - CloudError, DedicatedCapacities, DedicatedCapacity, DedicatedCapacityAdministrators, DedicatedCapacityUpdateParameters, + ErrorResponse, + ErrorResponseError, Resource, - ResourceSku, SkuDetailsForExistingResource, SkuEnumerationForExistingResourceResult, - SkuEnumerationForNewResourceResult + SkuEnumerationForNewResourceResult, + SystemData } from "../models/mappers"; diff --git a/sdk/powerbidedicated/arm-powerbidedicated/src/models/index.ts b/sdk/powerbidedicated/arm-powerbidedicated/src/models/index.ts index 3aa64f0a6c40..3a55dcf7bd28 100644 --- a/sdk/powerbidedicated/arm-powerbidedicated/src/models/index.ts +++ b/sdk/powerbidedicated/arm-powerbidedicated/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -48,18 +48,35 @@ export interface Operation { } /** - * Represents the SKU name and Azure pricing tier for PowerBI Dedicated resource. + * Metadata pertaining to creation and last modification of the resource. */ -export interface ResourceSku { +export interface SystemData { /** - * Name of the SKU level. + * An identifier for the identity that created the resource */ - name: string; + createdBy?: string; /** - * The name of the Azure pricing tier to which the SKU applies. Possible values include: - * 'PBIE_Azure' + * The type of identity that created the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + createdByType?: IdentityType; + /** + * The timestamp of resource creation (UTC) + */ + createdAt?: Date; + /** + * An identifier for the identity that last modified the resource */ - tier?: SkuTier; + lastModifiedBy?: string; + /** + * The type of identity that last modified the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + lastModifiedByType?: IdentityType; + /** + * The timestamp of resource last modification (UTC) + */ + lastModifiedAt?: Date; } /** @@ -85,24 +102,50 @@ export interface Resource extends BaseResource { * Location of the PowerBI Dedicated resource. */ location: string; - /** - * The SKU of the PowerBI Dedicated resource. - */ - sku: ResourceSku; /** * Key-value pairs of additional resource provisioning properties. */ tags?: { [propertyName: string]: string }; + /** + * Metadata pertaining to creation and last modification of the resource. + */ + systemData?: SystemData; +} + +/** + * Represents the SKU name and Azure pricing tier for PowerBI Dedicated capacity resource. + */ +export interface CapacitySku { + /** + * Name of the SKU level. + */ + name: string; + /** + * The name of the Azure pricing tier to which the SKU applies. Possible values include: + * 'PBIE_Azure', 'Premium', 'AutoPremiumHost' + */ + tier?: CapacitySkuTier; } /** * Represents an instance of a Dedicated Capacity resource. */ export interface DedicatedCapacity extends Resource { + /** + * The SKU of the PowerBI Dedicated capacity resource. + */ + sku: CapacitySku; /** * A collection of Dedicated capacity administrators */ administration?: DedicatedCapacityAdministrators; + /** + * Specifies the generation of the Power BI Embedded capacity. If no value is specified, the + * default value 'Gen2' is used. [Learn + * More](https://docs.microsoft.com/power-bi/developer/embedded/power-bi-embedded-generation-2). + * Possible values include: 'Gen1', 'Gen2' + */ + mode?: Mode; /** * The current state of PowerBI Dedicated resource. The state is to indicate more states outside * of resource provisioning. Possible values include: 'Deleting', 'Succeeded', 'Failed', @@ -118,7 +161,7 @@ export interface DedicatedCapacity extends Resource { * 'Resuming', 'Preparing', 'Scaling' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningState?: ProvisioningState; + readonly provisioningState?: CapacityProvisioningState; } /** @@ -138,7 +181,7 @@ export interface DedicatedCapacityUpdateParameters { /** * The SKU of the Dedicated capacity resource. */ - sku?: ResourceSku; + sku?: CapacitySku; /** * Key-value pairs of additional provisioning properties. */ @@ -147,6 +190,13 @@ export interface DedicatedCapacityUpdateParameters { * A collection of Dedicated capacity administrators */ administration?: DedicatedCapacityAdministrators; + /** + * Specifies the generation of the Power BI Embedded capacity. If no value is specified, the + * default value 'Gen2' is used. [Learn + * More](https://docs.microsoft.com/power-bi/developer/embedded/power-bi-embedded-generation-2). + * Possible values include: 'Gen1', 'Gen2' + */ + mode?: Mode; } /** @@ -156,7 +206,7 @@ export interface SkuEnumerationForNewResourceResult { /** * The collection of available SKUs for new resources */ - value?: ResourceSku[]; + value?: CapacitySku[]; } /** @@ -166,7 +216,7 @@ export interface SkuDetailsForExistingResource { /** * The SKU in SKU details for existing resources. */ - sku?: ResourceSku; + sku?: CapacitySku; } /** @@ -180,9 +230,9 @@ export interface SkuEnumerationForExistingResourceResult { } /** - * Describes the format of Error response. + * The error object */ -export interface ErrorResponse { +export interface ErrorResponseError { /** * Error code */ @@ -193,6 +243,16 @@ export interface ErrorResponse { message?: string; } +/** + * Describes the format of Error response. + */ +export interface ErrorResponse { + /** + * The error object + */ + error?: ErrorResponseError; +} + /** * Details of capacity name request body. */ @@ -226,6 +286,67 @@ export interface CheckCapacityNameAvailabilityResult { message?: string; } +/** + * Represents the SKU name and Azure pricing tier for auto scale v-core resource. + */ +export interface AutoScaleVCoreSku { + /** + * Name of the SKU level. + */ + name: string; + /** + * The name of the Azure pricing tier to which the SKU applies. Possible values include: + * 'AutoScale' + */ + tier?: VCoreSkuTier; + /** + * The capacity of an auto scale v-core resource. + */ + capacity?: number; +} + +/** + * Represents an instance of an auto scale v-core resource. + */ +export interface AutoScaleVCore extends Resource { + /** + * The SKU of the auto scale v-core resource. + */ + sku: AutoScaleVCoreSku; + /** + * The maximum capacity of an auto scale v-core resource. + */ + capacityLimit?: number; + /** + * The object ID of the capacity resource associated with the auto scale v-core resource. + */ + capacityObjectId?: string; + /** + * The current deployment state of an auto scale v-core resource. The provisioningState is to + * indicate states for resource provisioning. Possible values include: 'Succeeded' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: VCoreProvisioningState; +} + +/** + * Update request specification + */ +export interface AutoScaleVCoreUpdateParameters { + /** + * The SKU of the auto scale v-core resource. + */ + sku?: AutoScaleVCoreSku; + /** + * Key-value pairs of additional provisioning properties. + */ + tags?: { [propertyName: string]: string }; + /** + * The maximum capacity of an auto scale v-core resource. + */ + capacityLimit?: number; +} + /** * An interface representing PowerBIDedicatedManagementClientOptions. */ @@ -256,12 +377,28 @@ export interface OperationListResult extends Array { } /** - * Defines values for SkuTier. - * Possible values include: 'PBIE_Azure' + * @interface + * An array of auto scale v-core resources. + * @extends Array + */ +export interface AutoScaleVCoreListResult extends Array { +} + +/** + * Defines values for IdentityType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' * @readonly * @enum {string} */ -export type SkuTier = 'PBIE_Azure'; +export type IdentityType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; + +/** + * Defines values for CapacitySkuTier. + * Possible values include: 'PBIE_Azure', 'Premium', 'AutoPremiumHost' + * @readonly + * @enum {string} + */ +export type CapacitySkuTier = 'PBIE_Azure' | 'Premium' | 'AutoPremiumHost'; /** * Defines values for State. @@ -273,13 +410,37 @@ export type SkuTier = 'PBIE_Azure'; export type State = 'Deleting' | 'Succeeded' | 'Failed' | 'Paused' | 'Suspended' | 'Provisioning' | 'Updating' | 'Suspending' | 'Pausing' | 'Resuming' | 'Preparing' | 'Scaling'; /** - * Defines values for ProvisioningState. + * Defines values for CapacityProvisioningState. * Possible values include: 'Deleting', 'Succeeded', 'Failed', 'Paused', 'Suspended', * 'Provisioning', 'Updating', 'Suspending', 'Pausing', 'Resuming', 'Preparing', 'Scaling' * @readonly * @enum {string} */ -export type ProvisioningState = 'Deleting' | 'Succeeded' | 'Failed' | 'Paused' | 'Suspended' | 'Provisioning' | 'Updating' | 'Suspending' | 'Pausing' | 'Resuming' | 'Preparing' | 'Scaling'; +export type CapacityProvisioningState = 'Deleting' | 'Succeeded' | 'Failed' | 'Paused' | 'Suspended' | 'Provisioning' | 'Updating' | 'Suspending' | 'Pausing' | 'Resuming' | 'Preparing' | 'Scaling'; + +/** + * Defines values for Mode. + * Possible values include: 'Gen1', 'Gen2' + * @readonly + * @enum {string} + */ +export type Mode = 'Gen1' | 'Gen2'; + +/** + * Defines values for VCoreSkuTier. + * Possible values include: 'AutoScale' + * @readonly + * @enum {string} + */ +export type VCoreSkuTier = 'AutoScale'; + +/** + * Defines values for VCoreProvisioningState. + * Possible values include: 'Succeeded' + * @readonly + * @enum {string} + */ +export type VCoreProvisioningState = 'Succeeded'; /** * Contains response data for the getDetails operation. @@ -520,3 +681,103 @@ export type OperationsListNextResponse = OperationListResult & { parsedBody: OperationListResult; }; }; + +/** + * Contains response data for the get operation. + */ +export type AutoScaleVCoresGetResponse = AutoScaleVCore & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AutoScaleVCore; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type AutoScaleVCoresCreateResponse = AutoScaleVCore & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AutoScaleVCore; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type AutoScaleVCoresUpdateResponse = AutoScaleVCore & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AutoScaleVCore; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type AutoScaleVCoresListByResourceGroupResponse = AutoScaleVCoreListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AutoScaleVCoreListResult; + }; +}; + +/** + * Contains response data for the listBySubscription operation. + */ +export type AutoScaleVCoresListBySubscriptionResponse = AutoScaleVCoreListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AutoScaleVCoreListResult; + }; +}; diff --git a/sdk/powerbidedicated/arm-powerbidedicated/src/models/mappers.ts b/sdk/powerbidedicated/arm-powerbidedicated/src/models/mappers.ts index ca7783976708..8adb63ee9996 100644 --- a/sdk/powerbidedicated/arm-powerbidedicated/src/models/mappers.ts +++ b/sdk/powerbidedicated/arm-powerbidedicated/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -67,24 +67,47 @@ export const Operation: msRest.CompositeMapper = { } }; -export const ResourceSku: msRest.CompositeMapper = { - serializedName: "ResourceSku", +export const SystemData: msRest.CompositeMapper = { + serializedName: "SystemData", type: { name: "Composite", - className: "ResourceSku", + className: "SystemData", modelProperties: { - name: { - required: true, - serializedName: "name", + createdBy: { + serializedName: "createdBy", type: { name: "String" } }, - tier: { - serializedName: "tier", + createdByType: { + serializedName: "createdByType", + type: { + name: "String" + } + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { name: "String" } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } } } } @@ -124,14 +147,6 @@ export const Resource: msRest.CompositeMapper = { name: "String" } }, - sku: { - required: true, - serializedName: "sku", - type: { - name: "Composite", - className: "ResourceSku" - } - }, tags: { serializedName: "tags", type: { @@ -142,6 +157,36 @@ export const Resource: msRest.CompositeMapper = { } } } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const CapacitySku: msRest.CompositeMapper = { + serializedName: "CapacitySku", + type: { + name: "Composite", + className: "CapacitySku", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", + type: { + name: "String" + } } } } @@ -154,6 +199,14 @@ export const DedicatedCapacity: msRest.CompositeMapper = { className: "DedicatedCapacity", modelProperties: { ...Resource.type.modelProperties, + sku: { + required: true, + serializedName: "sku", + type: { + name: "Composite", + className: "CapacitySku" + } + }, administration: { serializedName: "properties.administration", type: { @@ -161,6 +214,12 @@ export const DedicatedCapacity: msRest.CompositeMapper = { className: "DedicatedCapacityAdministrators" } }, + mode: { + serializedName: "properties.mode", + type: { + name: "String" + } + }, state: { readOnly: true, serializedName: "properties.state", @@ -210,7 +269,7 @@ export const DedicatedCapacityUpdateParameters: msRest.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "ResourceSku" + className: "CapacitySku" } }, tags: { @@ -230,6 +289,12 @@ export const DedicatedCapacityUpdateParameters: msRest.CompositeMapper = { name: "Composite", className: "DedicatedCapacityAdministrators" } + }, + mode: { + serializedName: "properties.mode", + type: { + name: "String" + } } } } @@ -248,7 +313,7 @@ export const SkuEnumerationForNewResourceResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSku" + className: "CapacitySku" } } } @@ -267,7 +332,7 @@ export const SkuDetailsForExistingResource: msRest.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "ResourceSku" + className: "CapacitySku" } } } @@ -296,11 +361,11 @@ export const SkuEnumerationForExistingResourceResult: msRest.CompositeMapper = { } }; -export const ErrorResponse: msRest.CompositeMapper = { - serializedName: "ErrorResponse", +export const ErrorResponseError: msRest.CompositeMapper = { + serializedName: "ErrorResponse_error", type: { name: "Composite", - className: "ErrorResponse", + className: "ErrorResponseError", modelProperties: { code: { serializedName: "code", @@ -318,6 +383,23 @@ export const ErrorResponse: msRest.CompositeMapper = { } }; +export const ErrorResponse: msRest.CompositeMapper = { + serializedName: "ErrorResponse", + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorResponseError" + } + } + } + } +}; + export const CheckCapacityNameAvailabilityParameters: msRest.CompositeMapper = { serializedName: "CheckCapacityNameAvailabilityParameters", type: { @@ -374,6 +456,107 @@ export const CheckCapacityNameAvailabilityResult: msRest.CompositeMapper = { } }; +export const AutoScaleVCoreSku: msRest.CompositeMapper = { + serializedName: "AutoScaleVCoreSku", + type: { + name: "Composite", + className: "AutoScaleVCoreSku", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", + type: { + name: "String" + } + }, + capacity: { + serializedName: "capacity", + type: { + name: "Number" + } + } + } + } +}; + +export const AutoScaleVCore: msRest.CompositeMapper = { + serializedName: "AutoScaleVCore", + type: { + name: "Composite", + className: "AutoScaleVCore", + modelProperties: { + ...Resource.type.modelProperties, + sku: { + required: true, + serializedName: "sku", + type: { + name: "Composite", + className: "AutoScaleVCoreSku" + } + }, + capacityLimit: { + serializedName: "properties.capacityLimit", + type: { + name: "Number" + } + }, + capacityObjectId: { + serializedName: "properties.capacityObjectId", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const AutoScaleVCoreUpdateParameters: msRest.CompositeMapper = { + serializedName: "AutoScaleVCoreUpdateParameters", + type: { + name: "Composite", + className: "AutoScaleVCoreUpdateParameters", + modelProperties: { + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "AutoScaleVCoreSku" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + capacityLimit: { + serializedName: "properties.capacityLimit", + type: { + name: "Number" + } + } + } + } +}; + export const DedicatedCapacities: msRest.CompositeMapper = { serializedName: "DedicatedCapacities", type: { @@ -426,3 +609,26 @@ export const OperationListResult: msRest.CompositeMapper = { } } }; + +export const AutoScaleVCoreListResult: msRest.CompositeMapper = { + serializedName: "AutoScaleVCoreListResult", + type: { + name: "Composite", + className: "AutoScaleVCoreListResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutoScaleVCore" + } + } + } + } + } + } +}; diff --git a/sdk/powerbidedicated/arm-powerbidedicated/src/models/operationsMappers.ts b/sdk/powerbidedicated/arm-powerbidedicated/src/models/operationsMappers.ts index b8de8606cf9d..ba8142bc9cac 100644 --- a/sdk/powerbidedicated/arm-powerbidedicated/src/models/operationsMappers.ts +++ b/sdk/powerbidedicated/arm-powerbidedicated/src/models/operationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,7 @@ export { ErrorResponse, + ErrorResponseError, Operation, OperationDisplay, OperationListResult diff --git a/sdk/powerbidedicated/arm-powerbidedicated/src/models/parameters.ts b/sdk/powerbidedicated/arm-powerbidedicated/src/models/parameters.ts index aab9f450d3c9..c4d1e944e0cf 100644 --- a/sdk/powerbidedicated/arm-powerbidedicated/src/models/parameters.ts +++ b/sdk/powerbidedicated/arm-powerbidedicated/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -91,3 +90,18 @@ export const subscriptionId: msRest.OperationURLParameter = { } } }; +export const vcoreName: msRest.OperationURLParameter = { + parameterPath: "vcoreName", + mapper: { + required: true, + serializedName: "vcoreName", + constraints: { + MaxLength: 63, + MinLength: 3, + Pattern: /^[-a-zA-Z0-9_]+$/ + }, + type: { + name: "String" + } + } +}; diff --git a/sdk/powerbidedicated/arm-powerbidedicated/src/operations/autoScaleVCores.ts b/sdk/powerbidedicated/arm-powerbidedicated/src/operations/autoScaleVCores.ts new file mode 100644 index 000000000000..153c3dcc246c --- /dev/null +++ b/sdk/powerbidedicated/arm-powerbidedicated/src/operations/autoScaleVCores.ts @@ -0,0 +1,407 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/autoScaleVCoresMappers"; +import * as Parameters from "../models/parameters"; +import { PowerBIDedicatedManagementClientContext } from "../powerBIDedicatedManagementClientContext"; + +/** Class representing a AutoScaleVCores. */ +export class AutoScaleVCores { + private readonly client: PowerBIDedicatedManagementClientContext; + + /** + * Create a AutoScaleVCores. + * @param {PowerBIDedicatedManagementClientContext} client Reference to the service client. + */ + constructor(client: PowerBIDedicatedManagementClientContext) { + this.client = client; + } + + /** + * Gets details about the specified auto scale v-core. + * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated + * capacity is part. This name must be at least 1 character in length, and no more than 90. + * @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a + * maximum of 63. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, vcoreName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated + * capacity is part. This name must be at least 1 character in length, and no more than 90. + * @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a + * maximum of 63. + * @param callback The callback + */ + get(resourceGroupName: string, vcoreName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated + * capacity is part. This name must be at least 1 character in length, and no more than 90. + * @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a + * maximum of 63. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, vcoreName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, vcoreName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + vcoreName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Provisions the specified auto scale v-core based on the configuration specified in the request. + * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated + * capacity is part. This name must be at least 1 character in length, and no more than 90. + * @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a + * maximum of 63. + * @param vCoreParameters Contains the information used to provision the auto scale v-core. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, vcoreName: string, vCoreParameters: Models.AutoScaleVCore, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated + * capacity is part. This name must be at least 1 character in length, and no more than 90. + * @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a + * maximum of 63. + * @param vCoreParameters Contains the information used to provision the auto scale v-core. + * @param callback The callback + */ + create(resourceGroupName: string, vcoreName: string, vCoreParameters: Models.AutoScaleVCore, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated + * capacity is part. This name must be at least 1 character in length, and no more than 90. + * @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a + * maximum of 63. + * @param vCoreParameters Contains the information used to provision the auto scale v-core. + * @param options The optional parameters + * @param callback The callback + */ + create(resourceGroupName: string, vcoreName: string, vCoreParameters: Models.AutoScaleVCore, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, vcoreName: string, vCoreParameters: Models.AutoScaleVCore, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + vcoreName, + vCoreParameters, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified auto scale v-core. + * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated + * capacity is part. This name must be at least 1 character in length, and no more than 90. + * @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a + * maximum of 63. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, vcoreName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated + * capacity is part. This name must be at least 1 character in length, and no more than 90. + * @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a + * maximum of 63. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, vcoreName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated + * capacity is part. This name must be at least 1 character in length, and no more than 90. + * @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a + * maximum of 63. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, vcoreName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, vcoreName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + vcoreName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Updates the current state of the specified auto scale v-core. + * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated + * capacity is part. This name must be at least 1 character in length, and no more than 90. + * @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a + * maximum of 63. + * @param vCoreUpdateParameters Request object that contains the updated information for the auto + * scale v-core. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, vcoreName: string, vCoreUpdateParameters: Models.AutoScaleVCoreUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated + * capacity is part. This name must be at least 1 character in length, and no more than 90. + * @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a + * maximum of 63. + * @param vCoreUpdateParameters Request object that contains the updated information for the auto + * scale v-core. + * @param callback The callback + */ + update(resourceGroupName: string, vcoreName: string, vCoreUpdateParameters: Models.AutoScaleVCoreUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated + * capacity is part. This name must be at least 1 character in length, and no more than 90. + * @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a + * maximum of 63. + * @param vCoreUpdateParameters Request object that contains the updated information for the auto + * scale v-core. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, vcoreName: string, vCoreUpdateParameters: Models.AutoScaleVCoreUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, vcoreName: string, vCoreUpdateParameters: Models.AutoScaleVCoreUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + vcoreName, + vCoreUpdateParameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Gets all the auto scale v-cores for the given resource group. + * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated + * capacity is part. This name must be at least 1 character in length, and no more than 90. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated + * capacity is part. This name must be at least 1 character in length, and no more than 90. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated + * capacity is part. This name must be at least 1 character in length, and no more than 90. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Lists all the auto scale v-cores for the given subscription. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscription(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listBySubscription(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listBySubscriptionOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/autoScaleVCores/{vcoreName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.vcoreName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AutoScaleVCore + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/autoScaleVCores/{vcoreName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.vcoreName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "vCoreParameters", + mapper: { + ...Mappers.AutoScaleVCore, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.AutoScaleVCore + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/autoScaleVCores/{vcoreName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.vcoreName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/autoScaleVCores/{vcoreName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.vcoreName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "vCoreUpdateParameters", + mapper: { + ...Mappers.AutoScaleVCoreUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.AutoScaleVCore + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/autoScaleVCores", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AutoScaleVCoreListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.PowerBIDedicated/autoScaleVCores", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AutoScaleVCoreListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/powerbidedicated/arm-powerbidedicated/src/operations/capacities.ts b/sdk/powerbidedicated/arm-powerbidedicated/src/operations/capacities.ts index 6ee0c567a035..f54c427377ea 100644 --- a/sdk/powerbidedicated/arm-powerbidedicated/src/operations/capacities.ts +++ b/sdk/powerbidedicated/arm-powerbidedicated/src/operations/capacities.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -414,7 +413,7 @@ const getDetailsOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.DedicatedCapacity }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -438,7 +437,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.DedicatedCapacities }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -461,7 +460,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.DedicatedCapacities }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -484,7 +483,7 @@ const listSkusOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.SkuEnumerationForNewResourceResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -509,7 +508,7 @@ const listSkusForCapacityOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.SkuEnumerationForExistingResourceResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -540,7 +539,7 @@ const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.CheckCapacityNameAvailabilityResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -575,7 +574,7 @@ const beginCreateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.DedicatedCapacity }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -600,7 +599,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -635,7 +634,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.DedicatedCapacity }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -659,7 +658,7 @@ const beginSuspendOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -683,7 +682,7 @@ const beginResumeOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/powerbidedicated/arm-powerbidedicated/src/operations/index.ts b/sdk/powerbidedicated/arm-powerbidedicated/src/operations/index.ts index e7087b2e4304..93bbf362d42a 100644 --- a/sdk/powerbidedicated/arm-powerbidedicated/src/operations/index.ts +++ b/sdk/powerbidedicated/arm-powerbidedicated/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -10,3 +9,4 @@ export * from "./capacities"; export * from "./operations"; +export * from "./autoScaleVCores"; diff --git a/sdk/powerbidedicated/arm-powerbidedicated/src/operations/operations.ts b/sdk/powerbidedicated/arm-powerbidedicated/src/operations/operations.ts index 0276fc881dc3..e59ae2b459ae 100644 --- a/sdk/powerbidedicated/arm-powerbidedicated/src/operations/operations.ts +++ b/sdk/powerbidedicated/arm-powerbidedicated/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -108,6 +107,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/powerbidedicated/arm-powerbidedicated/src/powerBIDedicatedManagementClient.ts b/sdk/powerbidedicated/arm-powerbidedicated/src/powerBIDedicatedManagementClient.ts index eb7fcf046832..888f38ab6461 100644 --- a/sdk/powerbidedicated/arm-powerbidedicated/src/powerBIDedicatedManagementClient.ts +++ b/sdk/powerbidedicated/arm-powerbidedicated/src/powerBIDedicatedManagementClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -20,6 +19,7 @@ class PowerBIDedicatedManagementClient extends PowerBIDedicatedManagementClientC // Operation groups capacities: operations.Capacities; operations: operations.Operations; + autoScaleVCores: operations.AutoScaleVCores; /** * Initializes a new instance of the PowerBIDedicatedManagementClient class. @@ -37,6 +37,7 @@ class PowerBIDedicatedManagementClient extends PowerBIDedicatedManagementClientC super(credentials, subscriptionId, options); this.capacities = new operations.Capacities(this); this.operations = new operations.Operations(this); + this.autoScaleVCores = new operations.AutoScaleVCores(this); } } diff --git a/sdk/powerbidedicated/arm-powerbidedicated/src/powerBIDedicatedManagementClientContext.ts b/sdk/powerbidedicated/arm-powerbidedicated/src/powerBIDedicatedManagementClientContext.ts index 9ba410daf6bf..723b9a3d8bbc 100644 --- a/sdk/powerbidedicated/arm-powerbidedicated/src/powerBIDedicatedManagementClientContext.ts +++ b/sdk/powerbidedicated/arm-powerbidedicated/src/powerBIDedicatedManagementClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -10,8 +9,8 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; -import { TokenCredential } from "@azure/core-auth"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-powerbidedicated"; const packageVersion = "2.1.1"; @@ -51,7 +50,7 @@ export class PowerBIDedicatedManagementClientContext extends msRestAzure.AzureSe super(credentials, options); - this.apiVersion = '2017-10-01'; + this.apiVersion = '2021-01-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";