diff --git a/sdk/hdinsight/arm-hdinsight/README.md b/sdk/hdinsight/arm-hdinsight/README.md index 57e219e9e7a8..f8e75a9c9fcd 100644 --- a/sdk/hdinsight/arm-hdinsight/README.md +++ b/sdk/hdinsight/arm-hdinsight/README.md @@ -4,8 +4,8 @@ This package contains an isomorphic SDK (runs both in node.js and in browsers) f ### Currently supported environments -- Node.js version 8.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites @@ -14,18 +14,15 @@ You must have an [Azure subscription](https://azure.microsoft.com/free/). ### How to install To use this SDK in your project, you will need to install two packages. - - `@azure/arm-hdinsight` that contains the client. - `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. Install both packages using the below command: - ```bash npm install --save @azure/arm-hdinsight @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. +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. ### How to use @@ -39,7 +36,6 @@ npm install --save @azure/arm-hdinsight @azure/identity 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 get clusters as an example written in JavaScript. ##### Sample code @@ -55,24 +51,20 @@ const creds = new DefaultAzureCredential(); const client = new HDInsightManagementClient(creds, subscriptionId); const resourceGroupName = "testresourceGroupName"; const clusterName = "testclusterName"; -client.clusters - .get(resourceGroupName, clusterName) - .then((result) => { - console.log("The result is:"); - console.log(result); - }) - .catch((err) => { - console.log("An error occurred:"); - console.error(err); - }); +client.clusters.get(resourceGroupName, clusterName).then((result) => { + console.log("The result is:"); + console.log(result); +}).catch((err) => { + console.log("An error occurred:"); + console.error(err); +}); ``` #### browser - Authentication, client creation, and get clusters as an example written in JavaScript. In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. - -- See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. -- Note down the client Id from the previous step and use it in the browser sample below. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code @@ -90,23 +82,21 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const subscriptionId = ""; // Create credentials using the `@azure/identity` package. // Please note that you can also use credentials from the `@azure/ms-rest-browserauth` package instead. - const credential = new InteractiveBrowserCredential({ + const credential = new InteractiveBrowserCredential( + { clientId: "", tenant: "" }); const client = new Azure.ArmHdinsight.HDInsightManagementClient(creds, subscriptionId); const resourceGroupName = "testresourceGroupName"; const clusterName = "testclusterName"; - client.clusters - .get(resourceGroupName, clusterName) - .then((result) => { - console.log("The result is:"); - console.log(result); - }) - .catch((err) => { - console.log("An error occurred:"); - console.error(err); - }); + client.clusters.get(resourceGroupName, clusterName).then((result) => { + console.log("The result is:"); + console.log(result); + }).catch((err) => { + console.log("An error occurred:"); + console.error(err); + }); diff --git a/sdk/hdinsight/arm-hdinsight/package.json b/sdk/hdinsight/arm-hdinsight/package.json index 236c44b11058..a93a57868999 100644 --- a/sdk/hdinsight/arm-hdinsight/package.json +++ b/sdk/hdinsight/arm-hdinsight/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/main/sdk/hdinsight/arm-hdinsight", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/hdinsight/arm-hdinsight", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClient.ts b/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClient.ts index 6d57ff19d793..0aa81aac93ac 100644 --- a/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClient.ts +++ b/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClient.ts @@ -14,6 +14,7 @@ import * as Mappers from "./models/mappers"; import * as operations from "./operations"; import { HDInsightManagementClientContext } from "./hDInsightManagementClientContext"; + class HDInsightManagementClient extends HDInsightManagementClientContext { // Operation groups clusters: operations.Clusters; @@ -38,11 +39,7 @@ class HDInsightManagementClient extends HDInsightManagementClientContext { * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor( - credentials: msRest.ServiceClientCredentials | TokenCredential, - subscriptionId: string, - options?: Models.HDInsightManagementClientOptions - ) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.HDInsightManagementClientOptions) { super(credentials, subscriptionId, options); this.clusters = new operations.Clusters(this); this.applications = new operations.Applications(this); diff --git a/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClientContext.ts b/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClientContext.ts index f6a288efc1f7..fa14784fff25 100644 --- a/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClientContext.ts +++ b/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClientContext.ts @@ -32,16 +32,12 @@ export class HDInsightManagementClientContext extends msRestAzure.AzureServiceCl * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor( - credentials: msRest.ServiceClientCredentials | TokenCredential, - subscriptionId: string, - options?: Models.HDInsightManagementClientOptions - ) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.HDInsightManagementClientOptions) { if (credentials == undefined) { - throw new Error("'credentials' cannot be null."); + throw new Error('\'credentials\' cannot be null.'); } if (subscriptionId == undefined) { - throw new Error("'subscriptionId' cannot be null."); + throw new Error('\'subscriptionId\' cannot be null.'); } if (!options) { @@ -54,8 +50,8 @@ export class HDInsightManagementClientContext extends msRestAzure.AzureServiceCl super(credentials, options); - this.apiVersion = "2018-06-01-preview"; - this.acceptLanguage = "en-US"; + this.apiVersion = '2018-06-01-preview'; + this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; this.requestContentType = "application/json; charset=utf-8"; @@ -65,10 +61,7 @@ export class HDInsightManagementClientContext extends msRestAzure.AzureServiceCl if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if ( - options.longRunningOperationRetryTimeout !== null && - options.longRunningOperationRetryTimeout !== undefined - ) { + if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } diff --git a/sdk/hdinsight/arm-hdinsight/src/models/index.ts b/sdk/hdinsight/arm-hdinsight/src/models/index.ts index 673c4d03ebfb..506139fb6f46 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/index.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/index.ts @@ -1069,7 +1069,8 @@ export interface UpdateClusterIdentityCertificateParameters { * The resource model definition for a ARM proxy resource. It will have everything other than * required location and tags */ -export interface ProxyResource extends Resource {} +export interface ProxyResource extends Resource { +} /** * Describes the format of Error response. @@ -2120,7 +2121,7 @@ export interface OperationListResult extends Array { * @readonly * @enum {string} */ -export type DirectoryType = "ActiveDirectory"; +export type DirectoryType = 'ActiveDirectory'; /** * Defines values for DaysOfWeek. @@ -2129,14 +2130,7 @@ export type DirectoryType = "ActiveDirectory"; * @readonly * @enum {string} */ -export type DaysOfWeek = - | "Monday" - | "Tuesday" - | "Wednesday" - | "Thursday" - | "Friday" - | "Saturday" - | "Sunday"; +export type DaysOfWeek = 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday' | 'Sunday'; /** * Defines values for ResourceProviderConnection. @@ -2144,7 +2138,7 @@ export type DaysOfWeek = * @readonly * @enum {string} */ -export type ResourceProviderConnection = "Inbound" | "Outbound"; +export type ResourceProviderConnection = 'Inbound' | 'Outbound'; /** * Defines values for PrivateLink. @@ -2152,7 +2146,7 @@ export type ResourceProviderConnection = "Inbound" | "Outbound"; * @readonly * @enum {string} */ -export type PrivateLink = "Disabled" | "Enabled"; +export type PrivateLink = 'Disabled' | 'Enabled'; /** * Defines values for OSType. @@ -2160,7 +2154,7 @@ export type PrivateLink = "Disabled" | "Enabled"; * @readonly * @enum {string} */ -export type OSType = "Windows" | "Linux"; +export type OSType = 'Windows' | 'Linux'; /** * Defines values for Tier. @@ -2168,7 +2162,7 @@ export type OSType = "Windows" | "Linux"; * @readonly * @enum {string} */ -export type Tier = "Standard" | "Premium"; +export type Tier = 'Standard' | 'Premium'; /** * Defines values for JsonWebKeyEncryptionAlgorithm. @@ -2176,7 +2170,7 @@ export type Tier = "Standard" | "Premium"; * @readonly * @enum {string} */ -export type JsonWebKeyEncryptionAlgorithm = "RSA-OAEP" | "RSA-OAEP-256" | "RSA1_5"; +export type JsonWebKeyEncryptionAlgorithm = 'RSA-OAEP' | 'RSA-OAEP-256' | 'RSA1_5'; /** * Defines values for ResourceIdentityType. @@ -2185,11 +2179,7 @@ export type JsonWebKeyEncryptionAlgorithm = "RSA-OAEP" | "RSA-OAEP-256" | "RSA1_ * @readonly * @enum {string} */ -export type ResourceIdentityType = - | "SystemAssigned" - | "UserAssigned" - | "SystemAssigned, UserAssigned" - | "None"; +export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned, UserAssigned' | 'None'; /** * Defines values for HDInsightClusterProvisioningState. @@ -2197,12 +2187,7 @@ export type ResourceIdentityType = * @readonly * @enum {string} */ -export type HDInsightClusterProvisioningState = - | "InProgress" - | "Failed" - | "Succeeded" - | "Canceled" - | "Deleting"; +export type HDInsightClusterProvisioningState = 'InProgress' | 'Failed' | 'Succeeded' | 'Canceled' | 'Deleting'; /** * Defines values for AsyncOperationState. @@ -2210,7 +2195,7 @@ export type HDInsightClusterProvisioningState = * @readonly * @enum {string} */ -export type AsyncOperationState = "InProgress" | "Succeeded" | "Failed"; +export type AsyncOperationState = 'InProgress' | 'Succeeded' | 'Failed'; /** * Defines values for FilterMode. @@ -2218,7 +2203,7 @@ export type AsyncOperationState = "InProgress" | "Succeeded" | "Failed"; * @readonly * @enum {string} */ -export type FilterMode = "Exclude" | "Include" | "Recommend" | "Default"; +export type FilterMode = 'Exclude' | 'Include' | 'Recommend' | 'Default'; /** * Contains response data for the create operation. @@ -2228,16 +2213,16 @@ export type ClustersCreateResponse = Cluster & { * 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: Cluster; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Cluster; + }; }; /** @@ -2248,16 +2233,16 @@ export type ClustersUpdateResponse = Cluster & { * 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: Cluster; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Cluster; + }; }; /** @@ -2268,16 +2253,16 @@ export type ClustersGetResponse = Cluster & { * 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: Cluster; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Cluster; + }; }; /** @@ -2288,16 +2273,16 @@ export type ClustersListByResourceGroupResponse = ClusterListResult & { * 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: ClusterListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClusterListResult; + }; }; /** @@ -2308,16 +2293,16 @@ export type ClustersListResponse = ClusterListResult & { * 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: ClusterListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClusterListResult; + }; }; /** @@ -2328,16 +2313,16 @@ export type ClustersGetGatewaySettingsResponse = GatewaySettings & { * 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: GatewaySettings; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: GatewaySettings; + }; }; /** @@ -2348,16 +2333,16 @@ export type ClustersGetAzureAsyncOperationStatusResponse = AsyncOperationResult * 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: AsyncOperationResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AsyncOperationResult; + }; }; /** @@ -2368,16 +2353,16 @@ export type ClustersBeginCreateResponse = Cluster & { * 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: Cluster; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Cluster; + }; }; /** @@ -2388,16 +2373,16 @@ export type ClustersListByResourceGroupNextResponse = ClusterListResult & { * 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: ClusterListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClusterListResult; + }; }; /** @@ -2408,16 +2393,16 @@ export type ClustersListNextResponse = ClusterListResult & { * 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: ClusterListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClusterListResult; + }; }; /** @@ -2428,16 +2413,16 @@ export type ApplicationsListByClusterResponse = ApplicationListResult & { * 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: ApplicationListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApplicationListResult; + }; }; /** @@ -2448,16 +2433,16 @@ export type ApplicationsGetResponse = Application & { * 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: Application; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Application; + }; }; /** @@ -2468,16 +2453,16 @@ export type ApplicationsCreateResponse = Application & { * 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: Application; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Application; + }; }; /** @@ -2488,16 +2473,16 @@ export type ApplicationsGetAzureAsyncOperationStatusResponse = AsyncOperationRes * 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: AsyncOperationResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AsyncOperationResult; + }; }; /** @@ -2508,16 +2493,16 @@ export type ApplicationsBeginCreateResponse = Application & { * 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: Application; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Application; + }; }; /** @@ -2528,16 +2513,16 @@ export type ApplicationsListByClusterNextResponse = ApplicationListResult & { * 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: ApplicationListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApplicationListResult; + }; }; /** @@ -2548,16 +2533,16 @@ export type LocationsGetCapabilitiesResponse = CapabilitiesResult & { * 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: CapabilitiesResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CapabilitiesResult; + }; }; /** @@ -2568,16 +2553,16 @@ export type LocationsListUsagesResponse = UsagesListResult & { * 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: UsagesListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: UsagesListResult; + }; }; /** @@ -2588,16 +2573,16 @@ export type LocationsListBillingSpecsResponse = BillingResponseListResult & { * 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: BillingResponseListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BillingResponseListResult; + }; }; /** @@ -2608,16 +2593,16 @@ export type LocationsGetAzureAsyncOperationStatusResponse = AsyncOperationResult * 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: AsyncOperationResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AsyncOperationResult; + }; }; /** @@ -2628,16 +2613,16 @@ export type LocationsCheckNameAvailabilityResponse = NameAvailabilityCheckResult * 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: NameAvailabilityCheckResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NameAvailabilityCheckResult; + }; }; /** @@ -2648,16 +2633,16 @@ export type LocationsValidateClusterCreateRequestResponse = ClusterCreateValidat * 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: ClusterCreateValidationResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClusterCreateValidationResult; + }; }; /** @@ -2668,16 +2653,16 @@ export type ConfigurationsListResponse = ClusterConfigurations & { * 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: ClusterConfigurations; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClusterConfigurations; + }; }; /** @@ -2693,16 +2678,16 @@ export type ConfigurationsGetResponse = { * 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: { [propertyName: string]: string }; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: { [propertyName: string]: string }; + }; }; /** @@ -2713,16 +2698,16 @@ export type ExtensionsGetMonitoringStatusResponse = ClusterMonitoringResponse & * 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: ClusterMonitoringResponse; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClusterMonitoringResponse; + }; }; /** @@ -2733,16 +2718,16 @@ export type ExtensionsGetAzureMonitorStatusResponse = AzureMonitorResponse & { * 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: AzureMonitorResponse; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AzureMonitorResponse; + }; }; /** @@ -2753,16 +2738,16 @@ export type ExtensionsGetResponse = ClusterMonitoringResponse & { * 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: ClusterMonitoringResponse; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClusterMonitoringResponse; + }; }; /** @@ -2773,16 +2758,16 @@ export type ExtensionsGetAzureAsyncOperationStatusResponse = AsyncOperationResul * 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: AsyncOperationResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AsyncOperationResult; + }; }; /** @@ -2793,16 +2778,16 @@ export type ScriptActionsListByClusterResponse = ScriptActionsList & { * 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: ScriptActionsList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ScriptActionsList; + }; }; /** @@ -2813,16 +2798,16 @@ export type ScriptActionsGetExecutionDetailResponse = RuntimeScriptActionDetail * 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: RuntimeScriptActionDetail; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: RuntimeScriptActionDetail; + }; }; /** @@ -2833,16 +2818,16 @@ export type ScriptActionsGetExecutionAsyncOperationStatusResponse = AsyncOperati * 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: AsyncOperationResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AsyncOperationResult; + }; }; /** @@ -2853,16 +2838,16 @@ export type ScriptActionsListByClusterNextResponse = ScriptActionsList & { * 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: ScriptActionsList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ScriptActionsList; + }; }; /** @@ -2873,16 +2858,16 @@ export type ScriptExecutionHistoryListByClusterResponse = ScriptActionExecutionH * 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: ScriptActionExecutionHistoryList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ScriptActionExecutionHistoryList; + }; }; /** @@ -2893,16 +2878,16 @@ export type ScriptExecutionHistoryListByClusterNextResponse = ScriptActionExecut * 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: ScriptActionExecutionHistoryList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ScriptActionExecutionHistoryList; + }; }; /** @@ -2913,16 +2898,16 @@ export type OperationsListResponse = OperationListResult & { * 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: OperationListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; }; /** @@ -2933,16 +2918,16 @@ export type OperationsListNextResponse = OperationListResult & { * 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: OperationListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; }; /** @@ -2953,16 +2938,16 @@ export type VirtualMachinesListHostsResponse = Array & { * 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: HostInfo[]; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: HostInfo[]; + }; }; /** @@ -2973,14 +2958,14 @@ export type VirtualMachinesGetAsyncOperationStatusResponse = AsyncOperationResul * 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: AsyncOperationResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AsyncOperationResult; + }; }; diff --git a/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts index d906a0bb0f15..909351a69ce1 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts @@ -111,7 +111,9 @@ export const SecurityProfile: msRest.CompositeMapper = { serializedName: "directoryType", type: { name: "Enum", - allowedValues: ["ActiveDirectory"] + allowedValues: [ + "ActiveDirectory" + ] } }, domain: { @@ -863,15 +865,21 @@ export const ClusterCreateProperties: msRest.CompositeMapper = { serializedName: "osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] + allowedValues: [ + "Windows", + "Linux" + ] } }, tier: { serializedName: "tier", - defaultValue: "Standard", + defaultValue: 'Standard', type: { name: "Enum", - allowedValues: ["Standard", "Premium"] + allowedValues: [ + "Standard", + "Premium" + ] } }, clusterDefinition: { @@ -1001,7 +1009,12 @@ export const ClusterIdentity: msRest.CompositeMapper = { serializedName: "type", type: { name: "Enum", - allowedValues: ["SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", "None"] + allowedValues: [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ] } }, userAssignedIdentities: { @@ -1183,14 +1196,20 @@ export const ClusterGetProperties: msRest.CompositeMapper = { serializedName: "osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] + allowedValues: [ + "Windows", + "Linux" + ] } }, tier: { serializedName: "tier", type: { name: "Enum", - allowedValues: ["Standard", "Premium"] + allowedValues: [ + "Standard", + "Premium" + ] } }, clusterId: { @@ -1232,7 +1251,13 @@ export const ClusterGetProperties: msRest.CompositeMapper = { serializedName: "provisioningState", type: { name: "Enum", - allowedValues: ["InProgress", "Failed", "Succeeded", "Canceled", "Deleting"] + allowedValues: [ + "InProgress", + "Failed", + "Succeeded", + "Canceled", + "Deleting" + ] } }, createdDate: { @@ -1761,7 +1786,11 @@ export const AsyncOperationResult: msRest.CompositeMapper = { serializedName: "status", type: { name: "Enum", - allowedValues: ["InProgress", "Succeeded", "Failed"] + allowedValues: [ + "InProgress", + "Succeeded", + "Failed" + ] } }, error: { @@ -2552,7 +2581,10 @@ export const VmSizeCompatibilityFilterV2: msRest.CompositeMapper = { element: { type: { name: "Enum", - allowedValues: ["Windows", "Linux"] + allowedValues: [ + "Windows", + "Linux" + ] } } } @@ -2692,7 +2724,10 @@ export const DiskBillingMeters: msRest.CompositeMapper = { serializedName: "tier", type: { name: "Enum", - allowedValues: ["Standard", "Premium"] + allowedValues: [ + "Standard", + "Premium" + ] } } } diff --git a/sdk/hdinsight/arm-hdinsight/src/models/parameters.ts b/sdk/hdinsight/arm-hdinsight/src/models/parameters.ts index 9e6161b53cb4..fab1ccb10279 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/parameters.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/parameters.ts @@ -13,7 +13,7 @@ export const acceptLanguage: msRest.OperationParameter = { parameterPath: "acceptLanguage", mapper: { serializedName: "accept-language", - defaultValue: "en-US", + defaultValue: 'en-US', type: { name: "String" } @@ -116,7 +116,7 @@ export const roleName: msRest.OperationURLParameter = { required: true, isConstant: true, serializedName: "roleName", - defaultValue: "workernode", + defaultValue: 'workernode', type: { name: "String" } diff --git a/sdk/hdinsight/arm-hdinsight/src/models/virtualMachinesMappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/virtualMachinesMappers.ts index 039f82d06054..aee4a2d1baf5 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/virtualMachinesMappers.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/virtualMachinesMappers.ts @@ -6,4 +6,9 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export { AsyncOperationResult, ErrorResponse, Errors, HostInfo } from "../models/mappers"; +export { + AsyncOperationResult, + ErrorResponse, + Errors, + HostInfo +} from "../models/mappers"; diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/applications.ts b/sdk/hdinsight/arm-hdinsight/src/operations/applications.ts index b82e8c1713f4..26d72b2e1056 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/applications.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/applications.ts @@ -33,39 +33,21 @@ export class Applications { * @param [options] The optional parameters * @returns Promise */ - listByCluster( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByCluster(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param callback The callback */ - listByCluster( - resourceGroupName: string, - clusterName: string, - callback: msRest.ServiceCallback - ): void; + listByCluster(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param options The optional parameters * @param callback The callback */ - listByCluster( - resourceGroupName: string, - clusterName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByCluster( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByCluster(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByCluster(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -73,8 +55,7 @@ export class Applications { options }, listByClusterOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -85,24 +66,14 @@ export class Applications { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - clusterName: string, - applicationName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(resourceGroupName: string, clusterName: string, applicationName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param applicationName The constant value for the application name. * @param callback The callback */ - get( - resourceGroupName: string, - clusterName: string, - applicationName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, clusterName: string, applicationName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. @@ -110,20 +81,8 @@ export class Applications { * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - clusterName: string, - applicationName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - clusterName: string, - applicationName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, clusterName: string, applicationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, clusterName: string, applicationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -132,8 +91,7 @@ export class Applications { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -145,22 +103,9 @@ export class Applications { * @param [options] The optional parameters * @returns Promise */ - create( - resourceGroupName: string, - clusterName: string, - applicationName: string, - parameters: Models.Application, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreate( - resourceGroupName, - clusterName, - applicationName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.ApplicationsCreateResponse - >; + create(resourceGroupName: string, clusterName: string, applicationName: string, parameters: Models.Application, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(resourceGroupName,clusterName,applicationName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -171,18 +116,9 @@ export class Applications { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - clusterName: string, - applicationName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod( - resourceGroupName, - clusterName, - applicationName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteMethod(resourceGroupName: string, clusterName: string, applicationName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,clusterName,applicationName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -194,13 +130,7 @@ export class Applications { * @param [options] The optional parameters * @returns Promise */ - getAzureAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - applicationName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, applicationName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. @@ -208,13 +138,7 @@ export class Applications { * @param operationId The long running operation id. * @param callback The callback */ - getAzureAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - applicationName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, applicationName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. @@ -223,22 +147,8 @@ export class Applications { * @param options The optional parameters * @param callback The callback */ - getAzureAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - applicationName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getAzureAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - applicationName: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, applicationName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, applicationName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -248,8 +158,7 @@ export class Applications { options }, getAzureAsyncOperationStatusOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -261,13 +170,7 @@ export class Applications { * @param [options] The optional parameters * @returns Promise */ - beginCreate( - resourceGroupName: string, - clusterName: string, - applicationName: string, - parameters: Models.Application, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreate(resourceGroupName: string, clusterName: string, applicationName: string, parameters: Models.Application, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -277,8 +180,7 @@ export class Applications { options }, beginCreateOperationSpec, - options - ); + options); } /** @@ -289,12 +191,7 @@ export class Applications { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - clusterName: string, - applicationName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(resourceGroupName: string, clusterName: string, applicationName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -303,8 +200,7 @@ export class Applications { options }, beginDeleteMethodOperationSpec, - options - ); + options); } /** @@ -313,41 +209,26 @@ export class Applications { * @param [options] The optional parameters * @returns Promise */ - listByClusterNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByClusterNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByClusterNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listByClusterNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByClusterNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByClusterNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByClusterNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByClusterNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listByClusterNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -355,11 +236,18 @@ export class Applications { const serializer = new msRest.Serializer(Mappers); const listByClusterOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ApplicationListResult @@ -373,16 +261,19 @@ const listByClusterOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, Parameters.applicationName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.Application @@ -396,8 +287,7 @@ const getOperationSpec: msRest.OperationSpec = { const getAzureAsyncOperationStatusOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}/azureasyncoperations/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}/azureasyncoperations/{operationId}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -405,8 +295,12 @@ const getAzureAsyncOperationStatusOperationSpec: msRest.OperationSpec = { Parameters.applicationName, Parameters.operationId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.AsyncOperationResult @@ -420,16 +314,19 @@ const getAzureAsyncOperationStatusOperationSpec: msRest.OperationSpec = { const beginCreateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, Parameters.applicationName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -450,16 +347,19 @@ const beginCreateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, Parameters.applicationName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -475,9 +375,15 @@ const listByClusterNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ApplicationListResult diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/clusters.ts b/sdk/hdinsight/arm-hdinsight/src/operations/clusters.ts index 36d179b3e2bd..9b7f898bd962 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/clusters.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/clusters.ts @@ -34,15 +34,9 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - create( - resourceGroupName: string, - clusterName: string, - parameters: Models.ClusterCreateParametersExtended, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreate(resourceGroupName, clusterName, parameters, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ) as Promise; + create(resourceGroupName: string, clusterName: string, parameters: Models.ClusterCreateParametersExtended, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(resourceGroupName,clusterName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -53,24 +47,14 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - update( - resourceGroupName: string, - clusterName: string, - parameters: Models.ClusterPatchParameters, - options?: msRest.RequestOptionsBase - ): Promise; + update(resourceGroupName: string, clusterName: string, parameters: Models.ClusterPatchParameters, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param parameters The cluster patch request. * @param callback The callback */ - update( - resourceGroupName: string, - clusterName: string, - parameters: Models.ClusterPatchParameters, - callback: msRest.ServiceCallback - ): void; + update(resourceGroupName: string, clusterName: string, parameters: Models.ClusterPatchParameters, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. @@ -78,20 +62,8 @@ export class Clusters { * @param options The optional parameters * @param callback The callback */ - update( - resourceGroupName: string, - clusterName: string, - parameters: Models.ClusterPatchParameters, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - update( - resourceGroupName: string, - clusterName: string, - parameters: Models.ClusterPatchParameters, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + update(resourceGroupName: string, clusterName: string, parameters: Models.ClusterPatchParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, clusterName: string, parameters: Models.ClusterPatchParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -100,8 +72,7 @@ export class Clusters { options }, updateOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -111,14 +82,9 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod(resourceGroupName, clusterName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + deleteMethod(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,clusterName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -128,39 +94,21 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param callback The callback */ - get( - resourceGroupName: string, - clusterName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - clusterName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -168,8 +116,7 @@ export class Clusters { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -178,41 +125,26 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroup( - resourceGroupName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param callback The callback */ - listByResourceGroup( - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @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 { + 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; + callback) as Promise; } /** @@ -223,15 +155,9 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - resize( - resourceGroupName: string, - clusterName: string, - parameters: Models.ClusterResizeParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginResize(resourceGroupName, clusterName, parameters, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + resize(resourceGroupName: string, clusterName: string, parameters: Models.ClusterResizeParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginResize(resourceGroupName,clusterName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -242,18 +168,9 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - updateAutoScaleConfiguration( - resourceGroupName: string, - clusterName: string, - parameters: Models.AutoscaleConfigurationUpdateParameter, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdateAutoScaleConfiguration( - resourceGroupName, - clusterName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + updateAutoScaleConfiguration(resourceGroupName: string, clusterName: string, parameters: Models.AutoscaleConfigurationUpdateParameter, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateAutoScaleConfiguration(resourceGroupName,clusterName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -270,21 +187,14 @@ export class Clusters { * @param options The optional parameters * @param callback The callback */ - list( - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - list( - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -295,18 +205,9 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - rotateDiskEncryptionKey( - resourceGroupName: string, - clusterName: string, - parameters: Models.ClusterDiskEncryptionParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginRotateDiskEncryptionKey( - resourceGroupName, - clusterName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + rotateDiskEncryptionKey(resourceGroupName: string, clusterName: string, parameters: Models.ClusterDiskEncryptionParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginRotateDiskEncryptionKey(resourceGroupName,clusterName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -316,39 +217,21 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - getGatewaySettings( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getGatewaySettings(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param callback The callback */ - getGatewaySettings( - resourceGroupName: string, - clusterName: string, - callback: msRest.ServiceCallback - ): void; + getGatewaySettings(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param options The optional parameters * @param callback The callback */ - getGatewaySettings( - resourceGroupName: string, - clusterName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getGatewaySettings( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getGatewaySettings(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getGatewaySettings(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -356,8 +239,7 @@ export class Clusters { options }, getGatewaySettingsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -368,18 +250,9 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - updateGatewaySettings( - resourceGroupName: string, - clusterName: string, - parameters: Models.UpdateGatewaySettingsParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdateGatewaySettings( - resourceGroupName, - clusterName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + updateGatewaySettings(resourceGroupName: string, clusterName: string, parameters: Models.UpdateGatewaySettingsParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateGatewaySettings(resourceGroupName,clusterName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -390,24 +263,14 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - getAzureAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param operationId The long running operation id. * @param callback The callback */ - getAzureAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. @@ -415,20 +278,8 @@ export class Clusters { * @param options The optional parameters * @param callback The callback */ - getAzureAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getAzureAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -437,8 +288,7 @@ export class Clusters { options }, getAzureAsyncOperationStatusOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -449,18 +299,9 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - updateIdentityCertificate( - resourceGroupName: string, - clusterName: string, - parameters: Models.UpdateClusterIdentityCertificateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdateIdentityCertificate( - resourceGroupName, - clusterName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + updateIdentityCertificate(resourceGroupName: string, clusterName: string, parameters: Models.UpdateClusterIdentityCertificateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateIdentityCertificate(resourceGroupName,clusterName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -471,18 +312,9 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - executeScriptActions( - resourceGroupName: string, - clusterName: string, - parameters: Models.ExecuteScriptActionParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginExecuteScriptActions( - resourceGroupName, - clusterName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + executeScriptActions(resourceGroupName: string, clusterName: string, parameters: Models.ExecuteScriptActionParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginExecuteScriptActions(resourceGroupName,clusterName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -493,12 +325,7 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - beginCreate( - resourceGroupName: string, - clusterName: string, - parameters: Models.ClusterCreateParametersExtended, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreate(resourceGroupName: string, clusterName: string, parameters: Models.ClusterCreateParametersExtended, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -507,8 +334,7 @@ export class Clusters { options }, beginCreateOperationSpec, - options - ); + options); } /** @@ -518,11 +344,7 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -530,8 +352,7 @@ export class Clusters { options }, beginDeleteMethodOperationSpec, - options - ); + options); } /** @@ -542,12 +363,7 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - beginResize( - resourceGroupName: string, - clusterName: string, - parameters: Models.ClusterResizeParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginResize(resourceGroupName: string, clusterName: string, parameters: Models.ClusterResizeParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -556,8 +372,7 @@ export class Clusters { options }, beginResizeOperationSpec, - options - ); + options); } /** @@ -568,12 +383,7 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - beginUpdateAutoScaleConfiguration( - resourceGroupName: string, - clusterName: string, - parameters: Models.AutoscaleConfigurationUpdateParameter, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdateAutoScaleConfiguration(resourceGroupName: string, clusterName: string, parameters: Models.AutoscaleConfigurationUpdateParameter, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -582,8 +392,7 @@ export class Clusters { options }, beginUpdateAutoScaleConfigurationOperationSpec, - options - ); + options); } /** @@ -594,12 +403,7 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - beginRotateDiskEncryptionKey( - resourceGroupName: string, - clusterName: string, - parameters: Models.ClusterDiskEncryptionParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginRotateDiskEncryptionKey(resourceGroupName: string, clusterName: string, parameters: Models.ClusterDiskEncryptionParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -608,8 +412,7 @@ export class Clusters { options }, beginRotateDiskEncryptionKeyOperationSpec, - options - ); + options); } /** @@ -620,12 +423,7 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - beginUpdateGatewaySettings( - resourceGroupName: string, - clusterName: string, - parameters: Models.UpdateGatewaySettingsParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdateGatewaySettings(resourceGroupName: string, clusterName: string, parameters: Models.UpdateGatewaySettingsParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -634,8 +432,7 @@ export class Clusters { options }, beginUpdateGatewaySettingsOperationSpec, - options - ); + options); } /** @@ -646,12 +443,7 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - beginUpdateIdentityCertificate( - resourceGroupName: string, - clusterName: string, - parameters: Models.UpdateClusterIdentityCertificateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdateIdentityCertificate(resourceGroupName: string, clusterName: string, parameters: Models.UpdateClusterIdentityCertificateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -660,8 +452,7 @@ export class Clusters { options }, beginUpdateIdentityCertificateOperationSpec, - options - ); + options); } /** @@ -672,12 +463,7 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - beginExecuteScriptActions( - resourceGroupName: string, - clusterName: string, - parameters: Models.ExecuteScriptActionParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginExecuteScriptActions(resourceGroupName: string, clusterName: string, parameters: Models.ExecuteScriptActionParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -686,8 +472,7 @@ export class Clusters { options }, beginExecuteScriptActionsOperationSpec, - options - ); + options); } /** @@ -696,41 +481,26 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroupNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByResourceGroupNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByResourceGroupNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByResourceGroupNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listByResourceGroupNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -739,10 +509,7 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -753,24 +520,15 @@ export class Clusters { * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -778,11 +536,18 @@ export class Clusters { const serializer = new msRest.Serializer(Mappers); const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -803,11 +568,18 @@ const updateOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.Cluster @@ -821,11 +593,17 @@ const getOperationSpec: msRest.OperationSpec = { const listByResourceGroupOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ClusterListResult @@ -840,9 +618,15 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/clusters", - urlParameters: [Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ClusterListResult @@ -856,11 +640,18 @@ const listOperationSpec: msRest.OperationSpec = { const getGatewaySettingsOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/getGatewaySettings", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/getGatewaySettings", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GatewaySettings @@ -874,16 +665,19 @@ const getGatewaySettingsOperationSpec: msRest.OperationSpec = { const getAzureAsyncOperationStatusOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/azureasyncoperations/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/azureasyncoperations/{operationId}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, Parameters.operationId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.AsyncOperationResult @@ -897,11 +691,18 @@ const getAzureAsyncOperationStatusOperationSpec: msRest.OperationSpec = { const beginCreateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -922,11 +723,18 @@ const beginCreateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -940,16 +748,19 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { const beginResizeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/roles/{roleName}/resize", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/roles/{roleName}/resize", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, Parameters.roleName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -969,16 +780,19 @@ const beginResizeOperationSpec: msRest.OperationSpec = { const beginUpdateAutoScaleConfigurationOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/roles/{roleName}/autoscale", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/roles/{roleName}/autoscale", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, Parameters.roleName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -998,11 +812,18 @@ const beginUpdateAutoScaleConfigurationOperationSpec: msRest.OperationSpec = { const beginRotateDiskEncryptionKeyOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/rotatediskencryptionkey", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/rotatediskencryptionkey", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -1022,11 +843,18 @@ const beginRotateDiskEncryptionKeyOperationSpec: msRest.OperationSpec = { const beginUpdateGatewaySettingsOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/updateGatewaySettings", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/updateGatewaySettings", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -1046,11 +874,18 @@ const beginUpdateGatewaySettingsOperationSpec: msRest.OperationSpec = { const beginUpdateIdentityCertificateOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/updateClusterIdentityCertificate", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/updateClusterIdentityCertificate", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -1070,11 +905,18 @@ const beginUpdateIdentityCertificateOperationSpec: msRest.OperationSpec = { const beginExecuteScriptActionsOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/executeScriptActions", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/executeScriptActions", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -1097,9 +939,15 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ClusterListResult @@ -1115,9 +963,15 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ClusterListResult diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/extensions.ts b/sdk/hdinsight/arm-hdinsight/src/operations/extensions.ts index 32b0800cd896..faf22d786a41 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/extensions.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/extensions.ts @@ -34,18 +34,9 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - enableMonitoring( - resourceGroupName: string, - clusterName: string, - parameters: Models.ClusterMonitoringRequest, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginEnableMonitoring( - resourceGroupName, - clusterName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + enableMonitoring(resourceGroupName: string, clusterName: string, parameters: Models.ClusterMonitoringRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginEnableMonitoring(resourceGroupName,clusterName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -55,39 +46,21 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - getMonitoringStatus( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getMonitoringStatus(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param callback The callback */ - getMonitoringStatus( - resourceGroupName: string, - clusterName: string, - callback: msRest.ServiceCallback - ): void; + getMonitoringStatus(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param options The optional parameters * @param callback The callback */ - getMonitoringStatus( - resourceGroupName: string, - clusterName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getMonitoringStatus( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getMonitoringStatus(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getMonitoringStatus(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -95,8 +68,7 @@ export class Extensions { options }, getMonitoringStatusOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -106,14 +78,9 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - disableMonitoring( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDisableMonitoring(resourceGroupName, clusterName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + disableMonitoring(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDisableMonitoring(resourceGroupName,clusterName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -124,18 +91,9 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - enableAzureMonitor( - resourceGroupName: string, - clusterName: string, - parameters: Models.AzureMonitorRequest, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginEnableAzureMonitor( - resourceGroupName, - clusterName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + enableAzureMonitor(resourceGroupName: string, clusterName: string, parameters: Models.AzureMonitorRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginEnableAzureMonitor(resourceGroupName,clusterName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -145,39 +103,21 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - getAzureMonitorStatus( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getAzureMonitorStatus(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param callback The callback */ - getAzureMonitorStatus( - resourceGroupName: string, - clusterName: string, - callback: msRest.ServiceCallback - ): void; + getAzureMonitorStatus(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param options The optional parameters * @param callback The callback */ - getAzureMonitorStatus( - resourceGroupName: string, - clusterName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getAzureMonitorStatus( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getAzureMonitorStatus(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAzureMonitorStatus(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -185,8 +125,7 @@ export class Extensions { options }, getAzureMonitorStatusOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -196,16 +135,9 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - disableAzureMonitor( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDisableAzureMonitor( - resourceGroupName, - clusterName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + disableAzureMonitor(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDisableAzureMonitor(resourceGroupName,clusterName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -217,20 +149,9 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - create( - resourceGroupName: string, - clusterName: string, - extensionName: string, - parameters: Models.Extension, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreate( - resourceGroupName, - clusterName, - extensionName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + create(resourceGroupName: string, clusterName: string, extensionName: string, parameters: Models.Extension, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(resourceGroupName,clusterName,extensionName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -241,24 +162,14 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - clusterName: string, - extensionName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(resourceGroupName: string, clusterName: string, extensionName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param extensionName The name of the cluster extension. * @param callback The callback */ - get( - resourceGroupName: string, - clusterName: string, - extensionName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, clusterName: string, extensionName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. @@ -266,20 +177,8 @@ export class Extensions { * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - clusterName: string, - extensionName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - clusterName: string, - extensionName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, clusterName: string, extensionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, clusterName: string, extensionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -288,8 +187,7 @@ export class Extensions { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -300,18 +198,9 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - clusterName: string, - extensionName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod( - resourceGroupName, - clusterName, - extensionName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteMethod(resourceGroupName: string, clusterName: string, extensionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,clusterName,extensionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -323,13 +212,7 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - getAzureAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - extensionName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, extensionName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. @@ -337,13 +220,7 @@ export class Extensions { * @param operationId The long running operation id. * @param callback The callback */ - getAzureAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - extensionName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, extensionName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. @@ -352,22 +229,8 @@ export class Extensions { * @param options The optional parameters * @param callback The callback */ - getAzureAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - extensionName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getAzureAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - extensionName: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, extensionName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, extensionName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -377,8 +240,7 @@ export class Extensions { options }, getAzureAsyncOperationStatusOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -389,12 +251,7 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - beginEnableMonitoring( - resourceGroupName: string, - clusterName: string, - parameters: Models.ClusterMonitoringRequest, - options?: msRest.RequestOptionsBase - ): Promise { + beginEnableMonitoring(resourceGroupName: string, clusterName: string, parameters: Models.ClusterMonitoringRequest, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -403,8 +260,7 @@ export class Extensions { options }, beginEnableMonitoringOperationSpec, - options - ); + options); } /** @@ -414,11 +270,7 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - beginDisableMonitoring( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDisableMonitoring(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -426,8 +278,7 @@ export class Extensions { options }, beginDisableMonitoringOperationSpec, - options - ); + options); } /** @@ -438,12 +289,7 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - beginEnableAzureMonitor( - resourceGroupName: string, - clusterName: string, - parameters: Models.AzureMonitorRequest, - options?: msRest.RequestOptionsBase - ): Promise { + beginEnableAzureMonitor(resourceGroupName: string, clusterName: string, parameters: Models.AzureMonitorRequest, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -452,8 +298,7 @@ export class Extensions { options }, beginEnableAzureMonitorOperationSpec, - options - ); + options); } /** @@ -463,11 +308,7 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - beginDisableAzureMonitor( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDisableAzureMonitor(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -475,8 +316,7 @@ export class Extensions { options }, beginDisableAzureMonitorOperationSpec, - options - ); + options); } /** @@ -488,13 +328,7 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - beginCreate( - resourceGroupName: string, - clusterName: string, - extensionName: string, - parameters: Models.Extension, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreate(resourceGroupName: string, clusterName: string, extensionName: string, parameters: Models.Extension, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -504,8 +338,7 @@ export class Extensions { options }, beginCreateOperationSpec, - options - ); + options); } /** @@ -516,12 +349,7 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - clusterName: string, - extensionName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(resourceGroupName: string, clusterName: string, extensionName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -530,8 +358,7 @@ export class Extensions { options }, beginDeleteMethodOperationSpec, - options - ); + options); } } @@ -539,11 +366,18 @@ export class Extensions { const serializer = new msRest.Serializer(Mappers); const getMonitoringStatusOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ClusterMonitoringResponse @@ -557,11 +391,18 @@ const getMonitoringStatusOperationSpec: msRest.OperationSpec = { const getAzureMonitorStatusOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/azureMonitor", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/azureMonitor", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.AzureMonitorResponse @@ -575,16 +416,19 @@ const getAzureMonitorStatusOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, Parameters.extensionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ClusterMonitoringResponse @@ -598,8 +442,7 @@ const getOperationSpec: msRest.OperationSpec = { const getAzureAsyncOperationStatusOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}/azureAsyncOperations/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}/azureAsyncOperations/{operationId}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -607,8 +450,12 @@ const getAzureAsyncOperationStatusOperationSpec: msRest.OperationSpec = { Parameters.extensionName, Parameters.operationId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.AsyncOperationResult @@ -622,11 +469,18 @@ const getAzureAsyncOperationStatusOperationSpec: msRest.OperationSpec = { const beginEnableMonitoringOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -646,11 +500,18 @@ const beginEnableMonitoringOperationSpec: msRest.OperationSpec = { const beginDisableMonitoringOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -664,11 +525,18 @@ const beginDisableMonitoringOperationSpec: msRest.OperationSpec = { const beginEnableAzureMonitorOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/azureMonitor", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/azureMonitor", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -688,11 +556,18 @@ const beginEnableAzureMonitorOperationSpec: msRest.OperationSpec = { const beginDisableAzureMonitorOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/azureMonitor", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/azureMonitor", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -706,16 +581,19 @@ const beginDisableAzureMonitorOperationSpec: msRest.OperationSpec = { const beginCreateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, Parameters.extensionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -735,16 +613,19 @@ const beginCreateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, Parameters.extensionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/locations.ts b/sdk/hdinsight/arm-hdinsight/src/operations/locations.ts index cc5995ef49d9..db8b68b828bd 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/locations.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/locations.ts @@ -31,41 +31,26 @@ export class Locations { * @param [options] The optional parameters * @returns Promise */ - getCapabilities( - location: string, - options?: msRest.RequestOptionsBase - ): Promise; + getCapabilities(location: string, options?: msRest.RequestOptionsBase): Promise; /** * @param location The Azure location (region) for which to make the request. * @param callback The callback */ - getCapabilities( - location: string, - callback: msRest.ServiceCallback - ): void; + getCapabilities(location: string, callback: msRest.ServiceCallback): void; /** * @param location The Azure location (region) for which to make the request. * @param options The optional parameters * @param callback The callback */ - getCapabilities( - location: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getCapabilities( - location: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getCapabilities(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getCapabilities(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, options }, getCapabilitiesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -74,10 +59,7 @@ export class Locations { * @param [options] The optional parameters * @returns Promise */ - listUsages( - location: string, - options?: msRest.RequestOptionsBase - ): Promise; + listUsages(location: string, options?: msRest.RequestOptionsBase): Promise; /** * @param location The Azure location (region) for which to make the request. * @param callback The callback @@ -88,24 +70,15 @@ export class Locations { * @param options The optional parameters * @param callback The callback */ - listUsages( - location: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listUsages( - location: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listUsages(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listUsages(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, options }, listUsagesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -114,41 +87,26 @@ export class Locations { * @param [options] The optional parameters * @returns Promise */ - listBillingSpecs( - location: string, - options?: msRest.RequestOptionsBase - ): Promise; + listBillingSpecs(location: string, options?: msRest.RequestOptionsBase): Promise; /** * @param location The Azure location (region) for which to make the request. * @param callback The callback */ - listBillingSpecs( - location: string, - callback: msRest.ServiceCallback - ): void; + listBillingSpecs(location: string, callback: msRest.ServiceCallback): void; /** * @param location The Azure location (region) for which to make the request. * @param options The optional parameters * @param callback The callback */ - listBillingSpecs( - location: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listBillingSpecs( - location: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listBillingSpecs(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBillingSpecs(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, options }, listBillingSpecsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -158,39 +116,21 @@ export class Locations { * @param [options] The optional parameters * @returns Promise */ - getAzureAsyncOperationStatus( - location: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + getAzureAsyncOperationStatus(location: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param location The Azure location (region) for which to make the request. * @param operationId The long running operation id. * @param callback The callback */ - getAzureAsyncOperationStatus( - location: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + getAzureAsyncOperationStatus(location: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param location The Azure location (region) for which to make the request. * @param operationId The long running operation id. * @param options The optional parameters * @param callback The callback */ - getAzureAsyncOperationStatus( - location: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getAzureAsyncOperationStatus( - location: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getAzureAsyncOperationStatus(location: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAzureAsyncOperationStatus(location: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -198,8 +138,7 @@ export class Locations { options }, getAzureAsyncOperationStatusOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -209,41 +148,21 @@ export class Locations { * @param [options] The optional parameters * @returns Promise */ - checkNameAvailability( - location: string, - parameters: Models.NameAvailabilityCheckRequestParameters, - options?: msRest.RequestOptionsBase - ): Promise; + checkNameAvailability(location: string, parameters: Models.NameAvailabilityCheckRequestParameters, options?: msRest.RequestOptionsBase): Promise; /** * @param location The Azure location (region) for which to make the request. * @param parameters * @param callback The callback */ - checkNameAvailability( - location: string, - parameters: Models.NameAvailabilityCheckRequestParameters, - callback: msRest.ServiceCallback - ): void; + checkNameAvailability(location: string, parameters: Models.NameAvailabilityCheckRequestParameters, callback: msRest.ServiceCallback): void; /** * @param location The Azure location (region) for which to make the request. * @param parameters * @param options The optional parameters * @param callback The callback */ - checkNameAvailability( - location: string, - parameters: Models.NameAvailabilityCheckRequestParameters, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - checkNameAvailability( - location: string, - parameters: Models.NameAvailabilityCheckRequestParameters, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + checkNameAvailability(location: string, parameters: Models.NameAvailabilityCheckRequestParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkNameAvailability(location: string, parameters: Models.NameAvailabilityCheckRequestParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -251,8 +170,7 @@ export class Locations { options }, checkNameAvailabilityOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -262,41 +180,21 @@ export class Locations { * @param [options] The optional parameters * @returns Promise */ - validateClusterCreateRequest( - location: string, - parameters: Models.ClusterCreateRequestValidationParameters, - options?: msRest.RequestOptionsBase - ): Promise; + validateClusterCreateRequest(location: string, parameters: Models.ClusterCreateRequestValidationParameters, options?: msRest.RequestOptionsBase): Promise; /** * @param location The Azure location (region) for which to make the request. * @param parameters * @param callback The callback */ - validateClusterCreateRequest( - location: string, - parameters: Models.ClusterCreateRequestValidationParameters, - callback: msRest.ServiceCallback - ): void; + validateClusterCreateRequest(location: string, parameters: Models.ClusterCreateRequestValidationParameters, callback: msRest.ServiceCallback): void; /** * @param location The Azure location (region) for which to make the request. * @param parameters * @param options The optional parameters * @param callback The callback */ - validateClusterCreateRequest( - location: string, - parameters: Models.ClusterCreateRequestValidationParameters, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - validateClusterCreateRequest( - location: string, - parameters: Models.ClusterCreateRequestValidationParameters, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + validateClusterCreateRequest(location: string, parameters: Models.ClusterCreateRequestValidationParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + validateClusterCreateRequest(location: string, parameters: Models.ClusterCreateRequestValidationParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -304,8 +202,7 @@ export class Locations { options }, validateClusterCreateRequestOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -313,11 +210,17 @@ export class Locations { const serializer = new msRest.Serializer(Mappers); const getCapabilitiesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/capabilities", - urlParameters: [Parameters.subscriptionId, Parameters.location], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/capabilities", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.CapabilitiesResult @@ -332,9 +235,16 @@ const getCapabilitiesOperationSpec: msRest.OperationSpec = { const listUsagesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/usages", - urlParameters: [Parameters.subscriptionId, Parameters.location], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.subscriptionId, + Parameters.location + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.UsagesListResult @@ -348,11 +258,17 @@ const listUsagesOperationSpec: msRest.OperationSpec = { const listBillingSpecsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/billingSpecs", - urlParameters: [Parameters.subscriptionId, Parameters.location], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/billingSpecs", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.BillingResponseListResult @@ -366,11 +282,18 @@ const listBillingSpecsOperationSpec: msRest.OperationSpec = { const getAzureAsyncOperationStatusOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/azureasyncoperations/{operationId}", - urlParameters: [Parameters.subscriptionId, Parameters.location, Parameters.operationId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/azureasyncoperations/{operationId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location, + Parameters.operationId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.AsyncOperationResult @@ -384,11 +307,17 @@ const getAzureAsyncOperationStatusOperationSpec: msRest.OperationSpec = { const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/checkNameAvailability", - urlParameters: [Parameters.subscriptionId, Parameters.location], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/checkNameAvailability", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -409,11 +338,17 @@ const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { const validateClusterCreateRequestOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/validateCreateRequest", - urlParameters: [Parameters.subscriptionId, Parameters.location], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/validateCreateRequest", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/scriptActions.ts b/sdk/hdinsight/arm-hdinsight/src/operations/scriptActions.ts index 60f78acad957..d1b338ab701f 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/scriptActions.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/scriptActions.ts @@ -33,24 +33,14 @@ export class ScriptActions { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - clusterName: string, - scriptName: string, - options?: msRest.RequestOptionsBase - ): Promise; + deleteMethod(resourceGroupName: string, clusterName: string, scriptName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param scriptName The name of the script. * @param callback The callback */ - deleteMethod( - resourceGroupName: string, - clusterName: string, - scriptName: string, - callback: msRest.ServiceCallback - ): void; + deleteMethod(resourceGroupName: string, clusterName: string, scriptName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. @@ -58,20 +48,8 @@ export class ScriptActions { * @param options The optional parameters * @param callback The callback */ - deleteMethod( - resourceGroupName: string, - clusterName: string, - scriptName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - deleteMethod( - resourceGroupName: string, - clusterName: string, - scriptName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + deleteMethod(resourceGroupName: string, clusterName: string, scriptName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, clusterName: string, scriptName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -80,8 +58,7 @@ export class ScriptActions { options }, deleteMethodOperationSpec, - callback - ); + callback); } /** @@ -91,39 +68,21 @@ export class ScriptActions { * @param [options] The optional parameters * @returns Promise */ - listByCluster( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByCluster(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param callback The callback */ - listByCluster( - resourceGroupName: string, - clusterName: string, - callback: msRest.ServiceCallback - ): void; + listByCluster(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param options The optional parameters * @param callback The callback */ - listByCluster( - resourceGroupName: string, - clusterName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByCluster( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByCluster(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByCluster(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -131,8 +90,7 @@ export class ScriptActions { options }, listByClusterOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -143,24 +101,14 @@ export class ScriptActions { * @param [options] The optional parameters * @returns Promise */ - getExecutionDetail( - resourceGroupName: string, - clusterName: string, - scriptExecutionId: string, - options?: msRest.RequestOptionsBase - ): Promise; + getExecutionDetail(resourceGroupName: string, clusterName: string, scriptExecutionId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param scriptExecutionId The script execution Id * @param callback The callback */ - getExecutionDetail( - resourceGroupName: string, - clusterName: string, - scriptExecutionId: string, - callback: msRest.ServiceCallback - ): void; + getExecutionDetail(resourceGroupName: string, clusterName: string, scriptExecutionId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. @@ -168,20 +116,8 @@ export class ScriptActions { * @param options The optional parameters * @param callback The callback */ - getExecutionDetail( - resourceGroupName: string, - clusterName: string, - scriptExecutionId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getExecutionDetail( - resourceGroupName: string, - clusterName: string, - scriptExecutionId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getExecutionDetail(resourceGroupName: string, clusterName: string, scriptExecutionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getExecutionDetail(resourceGroupName: string, clusterName: string, scriptExecutionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -190,8 +126,7 @@ export class ScriptActions { options }, getExecutionDetailOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -202,24 +137,14 @@ export class ScriptActions { * @param [options] The optional parameters * @returns Promise */ - getExecutionAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + getExecutionAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param operationId The long running operation id. * @param callback The callback */ - getExecutionAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + getExecutionAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. @@ -227,20 +152,8 @@ export class ScriptActions { * @param options The optional parameters * @param callback The callback */ - getExecutionAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getExecutionAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getExecutionAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getExecutionAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -249,8 +162,7 @@ export class ScriptActions { options }, getExecutionAsyncOperationStatusOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -259,41 +171,26 @@ export class ScriptActions { * @param [options] The optional parameters * @returns Promise */ - listByClusterNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByClusterNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByClusterNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listByClusterNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByClusterNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByClusterNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByClusterNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByClusterNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listByClusterNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -301,16 +198,19 @@ export class ScriptActions { const serializer = new msRest.Serializer(Mappers); const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptActions/{scriptName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptActions/{scriptName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, Parameters.scriptName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 204: {}, @@ -323,11 +223,18 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { const listByClusterOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptActions", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptActions", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ScriptActionsList @@ -341,16 +248,19 @@ const listByClusterOperationSpec: msRest.OperationSpec = { const getExecutionDetailOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptExecutionHistory/{scriptExecutionId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptExecutionHistory/{scriptExecutionId}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, Parameters.scriptExecutionId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RuntimeScriptActionDetail @@ -364,16 +274,19 @@ const getExecutionDetailOperationSpec: msRest.OperationSpec = { const getExecutionAsyncOperationStatusOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/executeScriptActions/azureasyncoperations/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/executeScriptActions/azureasyncoperations/{operationId}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, Parameters.operationId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.AsyncOperationResult @@ -389,9 +302,15 @@ const listByClusterNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ScriptActionsList diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/virtualMachines.ts b/sdk/hdinsight/arm-hdinsight/src/operations/virtualMachines.ts index 1c64fffd2ae8..22d9e1a225ae 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/virtualMachines.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/virtualMachines.ts @@ -33,39 +33,21 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - listHosts( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listHosts(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param callback The callback */ - listHosts( - resourceGroupName: string, - clusterName: string, - callback: msRest.ServiceCallback - ): void; + listHosts(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param options The optional parameters * @param callback The callback */ - listHosts( - resourceGroupName: string, - clusterName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listHosts( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listHosts(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listHosts(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -73,8 +55,7 @@ export class VirtualMachines { options }, listHostsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -85,18 +66,9 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - restartHosts( - resourceGroupName: string, - clusterName: string, - hosts: string[], - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginRestartHosts( - resourceGroupName, - clusterName, - hosts, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + restartHosts(resourceGroupName: string, clusterName: string, hosts: string[], options?: msRest.RequestOptionsBase): Promise { + return this.beginRestartHosts(resourceGroupName,clusterName,hosts,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -107,24 +79,14 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - getAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + getAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param operationId The long running operation id. * @param callback The callback */ - getAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + getAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. @@ -132,20 +94,8 @@ export class VirtualMachines { * @param options The optional parameters * @param callback The callback */ - getAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -154,8 +104,7 @@ export class VirtualMachines { options }, getAsyncOperationStatusOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -166,12 +115,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - beginRestartHosts( - resourceGroupName: string, - clusterName: string, - hosts: string[], - options?: msRest.RequestOptionsBase - ): Promise { + beginRestartHosts(resourceGroupName: string, clusterName: string, hosts: string[], options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -180,8 +124,7 @@ export class VirtualMachines { options }, beginRestartHostsOperationSpec, - options - ); + options); } } @@ -189,11 +132,18 @@ export class VirtualMachines { const serializer = new msRest.Serializer(Mappers); const listHostsOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/listHosts", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/listHosts", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: { @@ -218,16 +168,19 @@ const listHostsOperationSpec: msRest.OperationSpec = { const getAsyncOperationStatusOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/restartHosts/azureasyncoperations/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/restartHosts/azureasyncoperations/{operationId}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, Parameters.operationId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.AsyncOperationResult @@ -241,11 +194,18 @@ const getAsyncOperationStatusOperationSpec: msRest.OperationSpec = { const beginRestartHostsOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/restartHosts", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/restartHosts", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "hosts", mapper: {