@azure/arm-hdinsight 0.24.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/{LICENSE.txt → LICENSE} +1 -1
- package/README.md +70 -82
- package/dist/index.js +7702 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/hDInsightManagementClient.d.ts +29 -0
- package/dist-esm/src/hDInsightManagementClient.d.ts.map +1 -0
- package/dist-esm/src/hDInsightManagementClient.js +62 -0
- package/dist-esm/src/hDInsightManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/{esm/models/virtualMachinesMappers.js → dist-esm/src/index.js} +5 -2
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1966 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +133 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +111 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +1516 -1670
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +37 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +280 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/applications.d.ts +90 -0
- package/dist-esm/src/operations/applications.d.ts.map +1 -0
- package/dist-esm/src/operations/applications.js +367 -0
- package/dist-esm/src/operations/applications.js.map +1 -0
- package/dist-esm/src/operations/clusters.d.ts +214 -0
- package/dist-esm/src/operations/clusters.d.ts.map +1 -0
- package/dist-esm/src/operations/clusters.js +979 -0
- package/dist-esm/src/operations/clusters.js.map +1 -0
- package/dist-esm/src/operations/configurations.d.ts +54 -0
- package/dist-esm/src/operations/configurations.d.ts.map +1 -0
- package/dist-esm/src/operations/configurations.js +178 -0
- package/dist-esm/src/operations/configurations.js.map +1 -0
- package/dist-esm/src/operations/extensions.d.ts +139 -0
- package/dist-esm/src/operations/extensions.d.ts.map +1 -0
- package/dist-esm/src/operations/extensions.js +602 -0
- package/dist-esm/src/operations/extensions.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/locations.d.ts +52 -0
- package/dist-esm/src/operations/locations.d.ts.map +1 -0
- package/dist-esm/src/operations/locations.js +199 -0
- package/dist-esm/src/operations/locations.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +81 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +349 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +28 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +85 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operations/scriptActions.d.ts +62 -0
- package/dist-esm/src/operations/scriptActions.d.ts.map +1 -0
- package/dist-esm/src/operations/scriptActions.js +232 -0
- package/dist-esm/src/operations/scriptActions.js.map +1 -0
- package/dist-esm/src/operations/scriptExecutionHistory.d.ts +46 -0
- package/dist-esm/src/operations/scriptExecutionHistory.d.ts.map +1 -0
- package/dist-esm/src/operations/scriptExecutionHistory.js +167 -0
- package/dist-esm/src/operations/scriptExecutionHistory.js.map +1 -0
- package/dist-esm/src/operations/virtualMachines.d.ts +45 -0
- package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachines.js +169 -0
- package/dist-esm/src/operations/virtualMachines.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/applications.d.ts +65 -0
- package/dist-esm/src/operationsInterfaces/applications.d.ts.map +1 -0
- package/{src/models/configurationsMappers.ts → dist-esm/src/operationsInterfaces/applications.js} +2 -5
- package/dist-esm/src/operationsInterfaces/applications.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts +178 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/clusters.js} +2 -1
- package/dist-esm/src/operationsInterfaces/clusters.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/configurations.d.ts +46 -0
- package/dist-esm/src/operationsInterfaces/configurations.d.ts.map +1 -0
- package/{src/models/virtualMachinesMappers.ts → dist-esm/src/operationsInterfaces/configurations.js} +2 -7
- package/dist-esm/src/operationsInterfaces/configurations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/extensions.d.ts +131 -0
- package/dist-esm/src/operationsInterfaces/extensions.d.ts.map +1 -0
- package/{esm/models/configurationsMappers.js → dist-esm/src/operationsInterfaces/extensions.js} +2 -2
- package/dist-esm/src/operationsInterfaces/extensions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +19 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/locations.d.ts +44 -0
- package/dist-esm/src/operationsInterfaces/locations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/locations.js +9 -0
- package/dist-esm/src/operationsInterfaces/locations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +20 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptActions.d.ts +37 -0
- package/dist-esm/src/operationsInterfaces/scriptActions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptActions.js +9 -0
- package/dist-esm/src/operationsInterfaces/scriptActions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutionHistory.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutionHistory.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutionHistory.js +9 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutionHistory.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts +37 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +65 -32
- package/review/arm-hdinsight.api.md +1678 -0
- package/rollup.config.js +181 -30
- package/src/hDInsightManagementClient.ts +105 -53
- package/src/{models/scriptExecutionHistoryMappers.ts → index.ts} +4 -7
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1810 -2954
- package/src/models/mappers.ts +1607 -1764
- package/src/models/parameters.ts +215 -53
- package/src/operations/applications.ts +376 -247
- package/src/operations/clusters.ts +1038 -649
- package/src/operations/configurations.ts +162 -154
- package/src/operations/extensions.ts +644 -410
- package/src/operations/index.ts +1 -2
- package/src/operations/locations.ts +143 -239
- package/src/operations/operations.ts +85 -73
- package/src/operations/privateEndpointConnections.ts +345 -182
- package/src/operations/privateLinkResources.ts +60 -92
- package/src/operations/scriptActions.ts +202 -206
- package/src/operations/scriptExecutionHistory.ts +155 -123
- package/src/operations/virtualMachines.ts +157 -154
- package/src/operationsInterfaces/applications.ts +126 -0
- package/src/operationsInterfaces/clusters.ts +327 -0
- package/src/operationsInterfaces/configurations.ts +77 -0
- package/src/operationsInterfaces/extensions.ts +234 -0
- package/src/operationsInterfaces/index.ts +19 -0
- package/src/operationsInterfaces/locations.ts +88 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +109 -0
- package/src/operationsInterfaces/privateLinkResources.ts +42 -0
- package/src/operationsInterfaces/scriptActions.ts +73 -0
- package/src/operationsInterfaces/scriptExecutionHistory.ts +43 -0
- package/src/operationsInterfaces/virtualMachines.ts +70 -0
- package/tsconfig.json +3 -3
- package/types/arm-hdinsight.d.ts +2866 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-hdinsight.js +0 -7464
- package/dist/arm-hdinsight.js.map +0 -1
- package/dist/arm-hdinsight.min.js +0 -1
- package/dist/arm-hdinsight.min.js.map +0 -1
- package/esm/hDInsightManagementClient.d.ts +0 -35
- package/esm/hDInsightManagementClient.d.ts.map +0 -1
- package/esm/hDInsightManagementClient.js +0 -48
- package/esm/hDInsightManagementClient.js.map +0 -1
- package/esm/hDInsightManagementClientContext.d.ts +0 -23
- package/esm/hDInsightManagementClientContext.d.ts.map +0 -1
- package/esm/hDInsightManagementClientContext.js +0 -61
- package/esm/hDInsightManagementClientContext.js.map +0 -1
- package/esm/models/applicationsMappers.d.ts +0 -2
- package/esm/models/applicationsMappers.d.ts.map +0 -1
- package/esm/models/applicationsMappers.js +0 -9
- package/esm/models/applicationsMappers.js.map +0 -1
- package/esm/models/clustersMappers.d.ts +0 -2
- package/esm/models/clustersMappers.d.ts.map +0 -1
- package/esm/models/clustersMappers.js +0 -9
- package/esm/models/clustersMappers.js.map +0 -1
- package/esm/models/configurationsMappers.d.ts +0 -2
- package/esm/models/configurationsMappers.d.ts.map +0 -1
- package/esm/models/configurationsMappers.js.map +0 -1
- package/esm/models/extensionsMappers.d.ts +0 -2
- package/esm/models/extensionsMappers.d.ts.map +0 -1
- package/esm/models/extensionsMappers.js +0 -9
- package/esm/models/extensionsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -3163
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/locationsMappers.d.ts +0 -2
- package/esm/models/locationsMappers.d.ts.map +0 -1
- package/esm/models/locationsMappers.js +0 -9
- package/esm/models/locationsMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -113
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -18
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -172
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
- package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.js +0 -9
- package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
- package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
- package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
- package/esm/models/privateLinkResourcesMappers.js +0 -9
- package/esm/models/privateLinkResourcesMappers.js.map +0 -1
- package/esm/models/scriptActionsMappers.d.ts +0 -2
- package/esm/models/scriptActionsMappers.d.ts.map +0 -1
- package/esm/models/scriptActionsMappers.js +0 -9
- package/esm/models/scriptActionsMappers.js.map +0 -1
- package/esm/models/scriptExecutionHistoryMappers.d.ts +0 -2
- package/esm/models/scriptExecutionHistoryMappers.d.ts.map +0 -1
- package/esm/models/scriptExecutionHistoryMappers.js +0 -9
- package/esm/models/scriptExecutionHistoryMappers.js.map +0 -1
- package/esm/models/virtualMachinesMappers.d.ts +0 -2
- package/esm/models/virtualMachinesMappers.d.ts.map +0 -1
- package/esm/models/virtualMachinesMappers.js.map +0 -1
- package/esm/operations/applications.d.ts +0 -142
- package/esm/operations/applications.d.ts.map +0 -1
- package/esm/operations/applications.js +0 -268
- package/esm/operations/applications.js.map +0 -1
- package/esm/operations/clusters.d.ts +0 -315
- package/esm/operations/clusters.d.ts.map +0 -1
- package/esm/operations/clusters.js +0 -710
- package/esm/operations/clusters.js.map +0 -1
- package/esm/operations/configurations.d.ts +0 -90
- package/esm/operations/configurations.d.ts.map +0 -1
- package/esm/operations/configurations.js +0 -173
- package/esm/operations/configurations.js.map +0 -1
- package/esm/operations/extensions.d.ts +0 -213
- package/esm/operations/extensions.d.ts.map +0 -1
- package/esm/operations/extensions.js +0 -477
- package/esm/operations/extensions.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/locations.d.ts +0 -130
- package/esm/operations/locations.d.ts.map +0 -1
- package/esm/operations/locations.js +0 -213
- package/esm/operations/locations.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -79
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/privateEndpointConnections.d.ts +0 -115
- package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
- package/esm/operations/privateEndpointConnections.js +0 -236
- package/esm/operations/privateEndpointConnections.js.map +0 -1
- package/esm/operations/privateLinkResources.d.ts +0 -58
- package/esm/operations/privateLinkResources.d.ts.map +0 -1
- package/esm/operations/privateLinkResources.js +0 -90
- package/esm/operations/privateLinkResources.js.map +0 -1
- package/esm/operations/scriptActions.d.ts +0 -124
- package/esm/operations/scriptActions.d.ts.map +0 -1
- package/esm/operations/scriptActions.js +0 -184
- package/esm/operations/scriptActions.js.map +0 -1
- package/esm/operations/scriptExecutionHistory.d.ts +0 -76
- package/esm/operations/scriptExecutionHistory.d.ts.map +0 -1
- package/esm/operations/scriptExecutionHistory.js +0 -117
- package/esm/operations/scriptExecutionHistory.js.map +0 -1
- package/esm/operations/virtualMachines.d.ts +0 -77
- package/esm/operations/virtualMachines.d.ts.map +0 -1
- package/esm/operations/virtualMachines.js +0 -167
- package/esm/operations/virtualMachines.js.map +0 -1
- package/src/hDInsightManagementClientContext.ts +0 -68
- package/src/models/applicationsMappers.ts +0 -66
- package/src/models/clustersMappers.ts +0 -77
- package/src/models/extensionsMappers.ts +0 -20
- package/src/models/locationsMappers.ts +0 -66
- package/src/models/operationsMappers.ts +0 -18
- package/src/models/privateEndpointConnectionsMappers.ts +0 -65
- package/src/models/privateLinkResourcesMappers.ts +0 -65
- package/src/models/scriptActionsMappers.ts +0 -17
package/src/operations/index.ts
CHANGED
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
9
|
export * from "./clusters";
|
|
@@ -3,224 +3,146 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import
|
|
11
|
-
import * as
|
|
12
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { Locations } from "../operationsInterfaces";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
13
12
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
13
|
+
import { HDInsightManagementClient } from "../hDInsightManagementClient";
|
|
14
|
+
import {
|
|
15
|
+
LocationsGetCapabilitiesOptionalParams,
|
|
16
|
+
LocationsGetCapabilitiesResponse,
|
|
17
|
+
LocationsListUsagesOptionalParams,
|
|
18
|
+
LocationsListUsagesResponse,
|
|
19
|
+
LocationsListBillingSpecsOptionalParams,
|
|
20
|
+
LocationsListBillingSpecsResponse,
|
|
21
|
+
LocationsGetAzureAsyncOperationStatusOptionalParams,
|
|
22
|
+
LocationsGetAzureAsyncOperationStatusResponse,
|
|
23
|
+
NameAvailabilityCheckRequestParameters,
|
|
24
|
+
LocationsCheckNameAvailabilityOptionalParams,
|
|
25
|
+
LocationsCheckNameAvailabilityResponse,
|
|
26
|
+
ClusterCreateRequestValidationParameters,
|
|
27
|
+
LocationsValidateClusterCreateRequestOptionalParams,
|
|
28
|
+
LocationsValidateClusterCreateRequestResponse
|
|
29
|
+
} from "../models";
|
|
15
30
|
|
|
16
|
-
/** Class
|
|
17
|
-
export class Locations {
|
|
18
|
-
private readonly client:
|
|
31
|
+
/** Class containing Locations operations. */
|
|
32
|
+
export class LocationsImpl implements Locations {
|
|
33
|
+
private readonly client: HDInsightManagementClient;
|
|
19
34
|
|
|
20
35
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @param
|
|
36
|
+
* Initialize a new instance of the class Locations class.
|
|
37
|
+
* @param client Reference to the service client
|
|
23
38
|
*/
|
|
24
|
-
constructor(client:
|
|
39
|
+
constructor(client: HDInsightManagementClient) {
|
|
25
40
|
this.client = client;
|
|
26
41
|
}
|
|
27
42
|
|
|
28
43
|
/**
|
|
29
44
|
* Gets the capabilities for the specified location.
|
|
30
45
|
* @param location The Azure location (region) for which to make the request.
|
|
31
|
-
* @param
|
|
32
|
-
* @returns Promise<Models.LocationsGetCapabilitiesResponse>
|
|
46
|
+
* @param options The options parameters.
|
|
33
47
|
*/
|
|
34
|
-
getCapabilities(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
*/
|
|
39
|
-
getCapabilities(location: string, callback: msRest.ServiceCallback<Models.CapabilitiesResult>): void;
|
|
40
|
-
/**
|
|
41
|
-
* @param location The Azure location (region) for which to make the request.
|
|
42
|
-
* @param options The optional parameters
|
|
43
|
-
* @param callback The callback
|
|
44
|
-
*/
|
|
45
|
-
getCapabilities(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CapabilitiesResult>): void;
|
|
46
|
-
getCapabilities(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CapabilitiesResult>, callback?: msRest.ServiceCallback<Models.CapabilitiesResult>): Promise<Models.LocationsGetCapabilitiesResponse> {
|
|
48
|
+
getCapabilities(
|
|
49
|
+
location: string,
|
|
50
|
+
options?: LocationsGetCapabilitiesOptionalParams
|
|
51
|
+
): Promise<LocationsGetCapabilitiesResponse> {
|
|
47
52
|
return this.client.sendOperationRequest(
|
|
48
|
-
{
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
},
|
|
52
|
-
getCapabilitiesOperationSpec,
|
|
53
|
-
callback) as Promise<Models.LocationsGetCapabilitiesResponse>;
|
|
53
|
+
{ location, options },
|
|
54
|
+
getCapabilitiesOperationSpec
|
|
55
|
+
);
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
/**
|
|
57
59
|
* Lists the usages for the specified location.
|
|
58
60
|
* @param location The Azure location (region) for which to make the request.
|
|
59
|
-
* @param
|
|
60
|
-
* @returns Promise<Models.LocationsListUsagesResponse>
|
|
61
|
+
* @param options The options parameters.
|
|
61
62
|
*/
|
|
62
|
-
listUsages(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
*/
|
|
67
|
-
listUsages(location: string, callback: msRest.ServiceCallback<Models.UsagesListResult>): void;
|
|
68
|
-
/**
|
|
69
|
-
* @param location The Azure location (region) for which to make the request.
|
|
70
|
-
* @param options The optional parameters
|
|
71
|
-
* @param callback The callback
|
|
72
|
-
*/
|
|
73
|
-
listUsages(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.UsagesListResult>): void;
|
|
74
|
-
listUsages(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.UsagesListResult>, callback?: msRest.ServiceCallback<Models.UsagesListResult>): Promise<Models.LocationsListUsagesResponse> {
|
|
63
|
+
listUsages(
|
|
64
|
+
location: string,
|
|
65
|
+
options?: LocationsListUsagesOptionalParams
|
|
66
|
+
): Promise<LocationsListUsagesResponse> {
|
|
75
67
|
return this.client.sendOperationRequest(
|
|
76
|
-
{
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
},
|
|
80
|
-
listUsagesOperationSpec,
|
|
81
|
-
callback) as Promise<Models.LocationsListUsagesResponse>;
|
|
68
|
+
{ location, options },
|
|
69
|
+
listUsagesOperationSpec
|
|
70
|
+
);
|
|
82
71
|
}
|
|
83
72
|
|
|
84
73
|
/**
|
|
85
74
|
* Lists the billingSpecs for the specified subscription and location.
|
|
86
75
|
* @param location The Azure location (region) for which to make the request.
|
|
87
|
-
* @param
|
|
88
|
-
* @returns Promise<Models.LocationsListBillingSpecsResponse>
|
|
76
|
+
* @param options The options parameters.
|
|
89
77
|
*/
|
|
90
|
-
listBillingSpecs(
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
*/
|
|
95
|
-
listBillingSpecs(location: string, callback: msRest.ServiceCallback<Models.BillingResponseListResult>): void;
|
|
96
|
-
/**
|
|
97
|
-
* @param location The Azure location (region) for which to make the request.
|
|
98
|
-
* @param options The optional parameters
|
|
99
|
-
* @param callback The callback
|
|
100
|
-
*/
|
|
101
|
-
listBillingSpecs(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.BillingResponseListResult>): void;
|
|
102
|
-
listBillingSpecs(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.BillingResponseListResult>, callback?: msRest.ServiceCallback<Models.BillingResponseListResult>): Promise<Models.LocationsListBillingSpecsResponse> {
|
|
78
|
+
listBillingSpecs(
|
|
79
|
+
location: string,
|
|
80
|
+
options?: LocationsListBillingSpecsOptionalParams
|
|
81
|
+
): Promise<LocationsListBillingSpecsResponse> {
|
|
103
82
|
return this.client.sendOperationRequest(
|
|
104
|
-
{
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
},
|
|
108
|
-
listBillingSpecsOperationSpec,
|
|
109
|
-
callback) as Promise<Models.LocationsListBillingSpecsResponse>;
|
|
83
|
+
{ location, options },
|
|
84
|
+
listBillingSpecsOperationSpec
|
|
85
|
+
);
|
|
110
86
|
}
|
|
111
87
|
|
|
112
88
|
/**
|
|
113
89
|
* Get the async operation status.
|
|
114
90
|
* @param location The Azure location (region) for which to make the request.
|
|
115
91
|
* @param operationId The long running operation id.
|
|
116
|
-
* @param
|
|
117
|
-
* @returns Promise<Models.LocationsGetAzureAsyncOperationStatusResponse>
|
|
118
|
-
*/
|
|
119
|
-
getAzureAsyncOperationStatus(location: string, operationId: string, options?: msRest.RequestOptionsBase): Promise<Models.LocationsGetAzureAsyncOperationStatusResponse>;
|
|
120
|
-
/**
|
|
121
|
-
* @param location The Azure location (region) for which to make the request.
|
|
122
|
-
* @param operationId The long running operation id.
|
|
123
|
-
* @param callback The callback
|
|
124
|
-
*/
|
|
125
|
-
getAzureAsyncOperationStatus(location: string, operationId: string, callback: msRest.ServiceCallback<Models.AsyncOperationResult>): void;
|
|
126
|
-
/**
|
|
127
|
-
* @param location The Azure location (region) for which to make the request.
|
|
128
|
-
* @param operationId The long running operation id.
|
|
129
|
-
* @param options The optional parameters
|
|
130
|
-
* @param callback The callback
|
|
92
|
+
* @param options The options parameters.
|
|
131
93
|
*/
|
|
132
|
-
getAzureAsyncOperationStatus(
|
|
133
|
-
|
|
94
|
+
getAzureAsyncOperationStatus(
|
|
95
|
+
location: string,
|
|
96
|
+
operationId: string,
|
|
97
|
+
options?: LocationsGetAzureAsyncOperationStatusOptionalParams
|
|
98
|
+
): Promise<LocationsGetAzureAsyncOperationStatusResponse> {
|
|
134
99
|
return this.client.sendOperationRequest(
|
|
135
|
-
{
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
options
|
|
139
|
-
},
|
|
140
|
-
getAzureAsyncOperationStatusOperationSpec,
|
|
141
|
-
callback) as Promise<Models.LocationsGetAzureAsyncOperationStatusResponse>;
|
|
100
|
+
{ location, operationId, options },
|
|
101
|
+
getAzureAsyncOperationStatusOperationSpec
|
|
102
|
+
);
|
|
142
103
|
}
|
|
143
104
|
|
|
144
105
|
/**
|
|
145
106
|
* Check the cluster name is available or not.
|
|
146
107
|
* @param location The Azure location (region) for which to make the request.
|
|
147
|
-
* @param parameters
|
|
148
|
-
* @param
|
|
149
|
-
* @returns Promise<Models.LocationsCheckNameAvailabilityResponse>
|
|
150
|
-
*/
|
|
151
|
-
checkNameAvailability(location: string, parameters: Models.NameAvailabilityCheckRequestParameters, options?: msRest.RequestOptionsBase): Promise<Models.LocationsCheckNameAvailabilityResponse>;
|
|
152
|
-
/**
|
|
153
|
-
* @param location The Azure location (region) for which to make the request.
|
|
154
|
-
* @param parameters
|
|
155
|
-
* @param callback The callback
|
|
156
|
-
*/
|
|
157
|
-
checkNameAvailability(location: string, parameters: Models.NameAvailabilityCheckRequestParameters, callback: msRest.ServiceCallback<Models.NameAvailabilityCheckResult>): void;
|
|
158
|
-
/**
|
|
159
|
-
* @param location The Azure location (region) for which to make the request.
|
|
160
|
-
* @param parameters
|
|
161
|
-
* @param options The optional parameters
|
|
162
|
-
* @param callback The callback
|
|
108
|
+
* @param parameters The request spec of checking name availability.
|
|
109
|
+
* @param options The options parameters.
|
|
163
110
|
*/
|
|
164
|
-
checkNameAvailability(
|
|
165
|
-
|
|
111
|
+
checkNameAvailability(
|
|
112
|
+
location: string,
|
|
113
|
+
parameters: NameAvailabilityCheckRequestParameters,
|
|
114
|
+
options?: LocationsCheckNameAvailabilityOptionalParams
|
|
115
|
+
): Promise<LocationsCheckNameAvailabilityResponse> {
|
|
166
116
|
return this.client.sendOperationRequest(
|
|
167
|
-
{
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
options
|
|
171
|
-
},
|
|
172
|
-
checkNameAvailabilityOperationSpec,
|
|
173
|
-
callback) as Promise<Models.LocationsCheckNameAvailabilityResponse>;
|
|
117
|
+
{ location, parameters, options },
|
|
118
|
+
checkNameAvailabilityOperationSpec
|
|
119
|
+
);
|
|
174
120
|
}
|
|
175
121
|
|
|
176
122
|
/**
|
|
177
123
|
* Validate the cluster create request spec is valid or not.
|
|
178
124
|
* @param location The Azure location (region) for which to make the request.
|
|
179
|
-
* @param parameters
|
|
180
|
-
* @param
|
|
181
|
-
* @returns Promise<Models.LocationsValidateClusterCreateRequestResponse>
|
|
182
|
-
*/
|
|
183
|
-
validateClusterCreateRequest(location: string, parameters: Models.ClusterCreateRequestValidationParameters, options?: msRest.RequestOptionsBase): Promise<Models.LocationsValidateClusterCreateRequestResponse>;
|
|
184
|
-
/**
|
|
185
|
-
* @param location The Azure location (region) for which to make the request.
|
|
186
|
-
* @param parameters
|
|
187
|
-
* @param callback The callback
|
|
188
|
-
*/
|
|
189
|
-
validateClusterCreateRequest(location: string, parameters: Models.ClusterCreateRequestValidationParameters, callback: msRest.ServiceCallback<Models.ClusterCreateValidationResult>): void;
|
|
190
|
-
/**
|
|
191
|
-
* @param location The Azure location (region) for which to make the request.
|
|
192
|
-
* @param parameters
|
|
193
|
-
* @param options The optional parameters
|
|
194
|
-
* @param callback The callback
|
|
125
|
+
* @param parameters The cluster create request specification.
|
|
126
|
+
* @param options The options parameters.
|
|
195
127
|
*/
|
|
196
|
-
validateClusterCreateRequest(
|
|
197
|
-
|
|
128
|
+
validateClusterCreateRequest(
|
|
129
|
+
location: string,
|
|
130
|
+
parameters: ClusterCreateRequestValidationParameters,
|
|
131
|
+
options?: LocationsValidateClusterCreateRequestOptionalParams
|
|
132
|
+
): Promise<LocationsValidateClusterCreateRequestResponse> {
|
|
198
133
|
return this.client.sendOperationRequest(
|
|
199
|
-
{
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
options
|
|
203
|
-
},
|
|
204
|
-
validateClusterCreateRequestOperationSpec,
|
|
205
|
-
callback) as Promise<Models.LocationsValidateClusterCreateRequestResponse>;
|
|
134
|
+
{ location, parameters, options },
|
|
135
|
+
validateClusterCreateRequestOperationSpec
|
|
136
|
+
);
|
|
206
137
|
}
|
|
207
138
|
}
|
|
208
|
-
|
|
209
139
|
// Operation Specifications
|
|
210
|
-
const serializer =
|
|
211
|
-
|
|
140
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
141
|
+
|
|
142
|
+
const getCapabilitiesOperationSpec: coreClient.OperationSpec = {
|
|
143
|
+
path:
|
|
144
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/capabilities",
|
|
212
145
|
httpMethod: "GET",
|
|
213
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/capabilities",
|
|
214
|
-
urlParameters: [
|
|
215
|
-
Parameters.subscriptionId,
|
|
216
|
-
Parameters.location
|
|
217
|
-
],
|
|
218
|
-
queryParameters: [
|
|
219
|
-
Parameters.apiVersion
|
|
220
|
-
],
|
|
221
|
-
headerParameters: [
|
|
222
|
-
Parameters.acceptLanguage
|
|
223
|
-
],
|
|
224
146
|
responses: {
|
|
225
147
|
200: {
|
|
226
148
|
bodyMapper: Mappers.CapabilitiesResult
|
|
@@ -229,22 +151,19 @@ const getCapabilitiesOperationSpec: msRest.OperationSpec = {
|
|
|
229
151
|
bodyMapper: Mappers.ErrorResponse
|
|
230
152
|
}
|
|
231
153
|
},
|
|
232
|
-
|
|
233
|
-
};
|
|
234
|
-
|
|
235
|
-
const listUsagesOperationSpec: msRest.OperationSpec = {
|
|
236
|
-
httpMethod: "GET",
|
|
237
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/usages",
|
|
154
|
+
queryParameters: [Parameters.apiVersion],
|
|
238
155
|
urlParameters: [
|
|
156
|
+
Parameters.$host,
|
|
239
157
|
Parameters.subscriptionId,
|
|
240
158
|
Parameters.location
|
|
241
159
|
],
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
160
|
+
headerParameters: [Parameters.accept],
|
|
161
|
+
serializer
|
|
162
|
+
};
|
|
163
|
+
const listUsagesOperationSpec: coreClient.OperationSpec = {
|
|
164
|
+
path:
|
|
165
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/usages",
|
|
166
|
+
httpMethod: "GET",
|
|
248
167
|
responses: {
|
|
249
168
|
200: {
|
|
250
169
|
bodyMapper: Mappers.UsagesListResult
|
|
@@ -253,22 +172,19 @@ const listUsagesOperationSpec: msRest.OperationSpec = {
|
|
|
253
172
|
bodyMapper: Mappers.ErrorResponse
|
|
254
173
|
}
|
|
255
174
|
},
|
|
256
|
-
|
|
257
|
-
};
|
|
258
|
-
|
|
259
|
-
const listBillingSpecsOperationSpec: msRest.OperationSpec = {
|
|
260
|
-
httpMethod: "GET",
|
|
261
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/billingSpecs",
|
|
175
|
+
queryParameters: [Parameters.apiVersion],
|
|
262
176
|
urlParameters: [
|
|
177
|
+
Parameters.$host,
|
|
263
178
|
Parameters.subscriptionId,
|
|
264
179
|
Parameters.location
|
|
265
180
|
],
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
181
|
+
headerParameters: [Parameters.accept],
|
|
182
|
+
serializer
|
|
183
|
+
};
|
|
184
|
+
const listBillingSpecsOperationSpec: coreClient.OperationSpec = {
|
|
185
|
+
path:
|
|
186
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/billingSpecs",
|
|
187
|
+
httpMethod: "GET",
|
|
272
188
|
responses: {
|
|
273
189
|
200: {
|
|
274
190
|
bodyMapper: Mappers.BillingResponseListResult
|
|
@@ -277,23 +193,19 @@ const listBillingSpecsOperationSpec: msRest.OperationSpec = {
|
|
|
277
193
|
bodyMapper: Mappers.ErrorResponse
|
|
278
194
|
}
|
|
279
195
|
},
|
|
280
|
-
|
|
281
|
-
};
|
|
282
|
-
|
|
283
|
-
const getAzureAsyncOperationStatusOperationSpec: msRest.OperationSpec = {
|
|
284
|
-
httpMethod: "GET",
|
|
285
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/azureasyncoperations/{operationId}",
|
|
196
|
+
queryParameters: [Parameters.apiVersion],
|
|
286
197
|
urlParameters: [
|
|
198
|
+
Parameters.$host,
|
|
287
199
|
Parameters.subscriptionId,
|
|
288
|
-
Parameters.location
|
|
289
|
-
Parameters.operationId
|
|
290
|
-
],
|
|
291
|
-
queryParameters: [
|
|
292
|
-
Parameters.apiVersion
|
|
293
|
-
],
|
|
294
|
-
headerParameters: [
|
|
295
|
-
Parameters.acceptLanguage
|
|
200
|
+
Parameters.location
|
|
296
201
|
],
|
|
202
|
+
headerParameters: [Parameters.accept],
|
|
203
|
+
serializer
|
|
204
|
+
};
|
|
205
|
+
const getAzureAsyncOperationStatusOperationSpec: coreClient.OperationSpec = {
|
|
206
|
+
path:
|
|
207
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/azureasyncoperations/{operationId}",
|
|
208
|
+
httpMethod: "GET",
|
|
297
209
|
responses: {
|
|
298
210
|
200: {
|
|
299
211
|
bodyMapper: Mappers.AsyncOperationResult
|
|
@@ -302,29 +214,20 @@ const getAzureAsyncOperationStatusOperationSpec: msRest.OperationSpec = {
|
|
|
302
214
|
bodyMapper: Mappers.ErrorResponse
|
|
303
215
|
}
|
|
304
216
|
},
|
|
305
|
-
|
|
306
|
-
};
|
|
307
|
-
|
|
308
|
-
const checkNameAvailabilityOperationSpec: msRest.OperationSpec = {
|
|
309
|
-
httpMethod: "POST",
|
|
310
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/checkNameAvailability",
|
|
217
|
+
queryParameters: [Parameters.apiVersion],
|
|
311
218
|
urlParameters: [
|
|
219
|
+
Parameters.$host,
|
|
312
220
|
Parameters.subscriptionId,
|
|
221
|
+
Parameters.operationId,
|
|
313
222
|
Parameters.location
|
|
314
223
|
],
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
parameterPath: "parameters",
|
|
323
|
-
mapper: {
|
|
324
|
-
...Mappers.NameAvailabilityCheckRequestParameters,
|
|
325
|
-
required: true
|
|
326
|
-
}
|
|
327
|
-
},
|
|
224
|
+
headerParameters: [Parameters.accept],
|
|
225
|
+
serializer
|
|
226
|
+
};
|
|
227
|
+
const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {
|
|
228
|
+
path:
|
|
229
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/checkNameAvailability",
|
|
230
|
+
httpMethod: "POST",
|
|
328
231
|
responses: {
|
|
329
232
|
200: {
|
|
330
233
|
bodyMapper: Mappers.NameAvailabilityCheckResult
|
|
@@ -333,29 +236,21 @@ const checkNameAvailabilityOperationSpec: msRest.OperationSpec = {
|
|
|
333
236
|
bodyMapper: Mappers.ErrorResponse
|
|
334
237
|
}
|
|
335
238
|
},
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
const validateClusterCreateRequestOperationSpec: msRest.OperationSpec = {
|
|
340
|
-
httpMethod: "POST",
|
|
341
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/validateCreateRequest",
|
|
239
|
+
requestBody: Parameters.parameters9,
|
|
240
|
+
queryParameters: [Parameters.apiVersion],
|
|
342
241
|
urlParameters: [
|
|
242
|
+
Parameters.$host,
|
|
343
243
|
Parameters.subscriptionId,
|
|
344
244
|
Parameters.location
|
|
345
245
|
],
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
mapper: {
|
|
355
|
-
...Mappers.ClusterCreateRequestValidationParameters,
|
|
356
|
-
required: true
|
|
357
|
-
}
|
|
358
|
-
},
|
|
246
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
247
|
+
mediaType: "json",
|
|
248
|
+
serializer
|
|
249
|
+
};
|
|
250
|
+
const validateClusterCreateRequestOperationSpec: coreClient.OperationSpec = {
|
|
251
|
+
path:
|
|
252
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/validateCreateRequest",
|
|
253
|
+
httpMethod: "POST",
|
|
359
254
|
responses: {
|
|
360
255
|
200: {
|
|
361
256
|
bodyMapper: Mappers.ClusterCreateValidationResult
|
|
@@ -364,5 +259,14 @@ const validateClusterCreateRequestOperationSpec: msRest.OperationSpec = {
|
|
|
364
259
|
bodyMapper: Mappers.ErrorResponse
|
|
365
260
|
}
|
|
366
261
|
},
|
|
262
|
+
requestBody: Parameters.parameters10,
|
|
263
|
+
queryParameters: [Parameters.apiVersion],
|
|
264
|
+
urlParameters: [
|
|
265
|
+
Parameters.$host,
|
|
266
|
+
Parameters.subscriptionId,
|
|
267
|
+
Parameters.location
|
|
268
|
+
],
|
|
269
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
270
|
+
mediaType: "json",
|
|
367
271
|
serializer
|
|
368
272
|
};
|