From 7f95eb5621cd2a5574bdfa4074c2b0966f2e5d56 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 5 Feb 2021 02:27:44 +0000 Subject: [PATCH] CodeGen from PR 12244 in Azure/azure-rest-api-specs Merge 8667c4fc36017e4ccbdf30e8b54cfac2c0490e0e into 65d0a3cf90e889dd6ad8b3c94f89f5081f88f1db --- .../arm-powerbidedicated/LICENSE.txt | 2 +- .../arm-powerbidedicated/README.md | 9 +- .../arm-powerbidedicated/rollup.config.js | 4 +- .../src/models/autoScaleVCoresMappers.ts | 22 + .../src/models/capacitiesMappers.ts | 14 +- .../arm-powerbidedicated/src/models/index.ts | 303 +++++++++++-- .../src/models/mappers.ts | 254 +++++++++-- .../src/models/operationsMappers.ts | 5 +- .../src/models/parameters.ts | 20 +- .../src/operations/autoScaleVCores.ts | 407 ++++++++++++++++++ .../src/operations/capacities.ts | 27 +- .../src/operations/index.ts | 6 +- .../src/operations/operations.ts | 8 +- .../src/powerBIDedicatedManagementClient.ts | 7 +- ...powerBIDedicatedManagementClientContext.ts | 7 +- 15 files changed, 1002 insertions(+), 93 deletions(-) create mode 100644 sdk/powerbidedicated/arm-powerbidedicated/src/models/autoScaleVCoresMappers.ts create mode 100644 sdk/powerbidedicated/arm-powerbidedicated/src/operations/autoScaleVCores.ts 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 e213b7d8b506..97e11c6ccf2d 100644 --- a/sdk/powerbidedicated/arm-powerbidedicated/README.md +++ b/sdk/powerbidedicated/arm-powerbidedicated/README.md @@ -15,7 +15,7 @@ npm install @azure/arm-powerbidedicated ### How to use -#### nodejs - Authentication, client creation and getDetails capacities as an example written in TypeScript. +#### nodejs - client creation and getDetails capacities as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0" ##### Sample code +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package ```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { PowerBIDedicatedManagementClient, PowerBIDedicatedManagementModels, PowerBIDedicatedManagementMappers } from "@azure/arm-powerbidedicated"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { PowerBIDedicatedManagementClient } = require("@azure/arm-powerbidedicated"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { 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..bda1f5f08d81 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,47 @@ 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; + /** + * The capacity mode. 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 +158,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 +178,7 @@ export interface DedicatedCapacityUpdateParameters { /** * The SKU of the Dedicated capacity resource. */ - sku?: ResourceSku; + sku?: CapacitySku; /** * Key-value pairs of additional provisioning properties. */ @@ -147,6 +187,10 @@ export interface DedicatedCapacityUpdateParameters { * A collection of Dedicated capacity administrators */ administration?: DedicatedCapacityAdministrators; + /** + * The capacity mode. Possible values include: 'Gen1', 'Gen2' + */ + mode?: Mode; } /** @@ -156,7 +200,7 @@ export interface SkuEnumerationForNewResourceResult { /** * The collection of available SKUs for new resources */ - value?: ResourceSku[]; + value?: CapacitySku[]; } /** @@ -166,7 +210,7 @@ export interface SkuDetailsForExistingResource { /** * The SKU in SKU details for existing resources. */ - sku?: ResourceSku; + sku?: CapacitySku; } /** @@ -180,9 +224,9 @@ export interface SkuEnumerationForExistingResourceResult { } /** - * Describes the format of Error response. + * The error object */ -export interface ErrorResponse { +export interface ErrorResponseError { /** * Error code */ @@ -193,6 +237,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 +280,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 +371,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 +404,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 +675,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 33c72336bac6..f5f4c79853ca 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 @@ -19,6 +18,7 @@ class PowerBIDedicatedManagementClient extends PowerBIDedicatedManagementClientC // Operation groups capacities: operations.Capacities; operations: operations.Operations; + autoScaleVCores: operations.AutoScaleVCores; /** * Initializes a new instance of the PowerBIDedicatedManagementClient class. @@ -31,6 +31,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 8c2c324a10d1..2a731550d849 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 @@ -45,7 +44,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";