@azure/arm-hdinsight 0.22.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 -74
- 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/configurationsMappers.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 +1813 -1305
- 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 +2 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +19 -0
- 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/virtualMachinesMappers.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/configurationsMappers.ts → dist-esm/src/operationsInterfaces/configurations.js} +2 -5
- 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/virtualMachinesMappers.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 -31
- package/review/arm-hdinsight.api.md +1678 -0
- package/rollup.config.js +181 -30
- package/src/hDInsightManagementClient.ts +106 -44
- package/src/{models/extensionsMappers.ts → index.ts} +4 -6
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1760 -2084
- package/src/models/mappers.ts +1840 -1291
- package/src/models/parameters.ts +236 -44
- package/src/operations/applications.ts +383 -187
- package/src/operations/clusters.ts +1051 -535
- package/src/operations/configurations.ts +162 -154
- package/src/operations/extensions.ts +693 -216
- package/src/operations/index.ts +3 -2
- package/src/operations/locations.ts +186 -99
- package/src/operations/operations.ts +85 -73
- package/src/operations/privateEndpointConnections.ts +495 -0
- package/src/operations/privateLinkResources.ts +116 -0
- package/src/operations/scriptActions.ts +215 -157
- package/src/operations/scriptExecutionHistory.ts +155 -123
- package/src/operations/virtualMachines.ts +166 -101
- 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/{esm/operations/index.js → src/operationsInterfaces/index.ts} +4 -3
- 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 -5759
- 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 -27
- package/esm/hDInsightManagementClient.d.ts.map +0 -1
- package/esm/hDInsightManagementClient.js +0 -41
- package/esm/hDInsightManagementClient.js.map +0 -1
- package/esm/hDInsightManagementClientContext.d.ts +0 -17
- package/esm/hDInsightManagementClientContext.d.ts.map +0 -1
- package/esm/hDInsightManagementClientContext.js +0 -56
- 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 -2397
- 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 -94
- 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 -15
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -142
- package/esm/models/parameters.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 -115
- package/esm/operations/applications.d.ts.map +0 -1
- package/esm/operations/applications.js +0 -233
- package/esm/operations/applications.js.map +0 -1
- package/esm/operations/clusters.d.ts +0 -273
- package/esm/operations/clusters.d.ts.map +0 -1
- package/esm/operations/clusters.js +0 -621
- 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 -131
- package/esm/operations/extensions.d.ts.map +0 -1
- package/esm/operations/extensions.js +0 -307
- 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 -67
- package/esm/operations/locations.d.ts.map +0 -1
- package/esm/operations/locations.js +0 -113
- 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/scriptActions.d.ts +0 -100
- package/esm/operations/scriptActions.d.ts.map +0 -1
- package/esm/operations/scriptActions.js +0 -151
- 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 -53
- package/esm/operations/virtualMachines.d.ts.map +0 -1
- package/esm/operations/virtualMachines.js +0 -134
- package/esm/operations/virtualMachines.js.map +0 -1
- package/src/hDInsightManagementClientContext.ts +0 -62
- package/src/models/applicationsMappers.ts +0 -56
- package/src/models/clustersMappers.ts +0 -65
- package/src/models/locationsMappers.ts +0 -28
- package/src/models/operationsMappers.ts +0 -18
- package/src/models/scriptActionsMappers.ts +0 -15
- package/src/models/scriptExecutionHistoryMappers.ts +0 -15
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";
|
|
@@ -16,3 +15,5 @@ export * from "./scriptActions";
|
|
|
16
15
|
export * from "./scriptExecutionHistory";
|
|
17
16
|
export * from "./operations";
|
|
18
17
|
export * from "./virtualMachines";
|
|
18
|
+
export * from "./privateEndpointConnections";
|
|
19
|
+
export * from "./privateLinkResources";
|
|
@@ -3,183 +3,270 @@
|
|
|
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
|
-
|
|
63
|
+
listUsages(
|
|
64
|
+
location: string,
|
|
65
|
+
options?: LocationsListUsagesOptionalParams
|
|
66
|
+
): Promise<LocationsListUsagesResponse> {
|
|
67
|
+
return this.client.sendOperationRequest(
|
|
68
|
+
{ location, options },
|
|
69
|
+
listUsagesOperationSpec
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
68
73
|
/**
|
|
74
|
+
* Lists the billingSpecs for the specified subscription and location.
|
|
69
75
|
* @param location The Azure location (region) for which to make the request.
|
|
70
|
-
* @param options The
|
|
71
|
-
* @param callback The callback
|
|
76
|
+
* @param options The options parameters.
|
|
72
77
|
*/
|
|
73
|
-
|
|
74
|
-
|
|
78
|
+
listBillingSpecs(
|
|
79
|
+
location: string,
|
|
80
|
+
options?: LocationsListBillingSpecsOptionalParams
|
|
81
|
+
): Promise<LocationsListBillingSpecsResponse> {
|
|
75
82
|
return this.client.sendOperationRequest(
|
|
76
|
-
{
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
},
|
|
80
|
-
listUsagesOperationSpec,
|
|
81
|
-
callback) as Promise<Models.LocationsListUsagesResponse>;
|
|
83
|
+
{ location, options },
|
|
84
|
+
listBillingSpecsOperationSpec
|
|
85
|
+
);
|
|
82
86
|
}
|
|
83
87
|
|
|
84
88
|
/**
|
|
85
|
-
*
|
|
89
|
+
* Get the async operation status.
|
|
86
90
|
* @param location The Azure location (region) for which to make the request.
|
|
87
|
-
* @param
|
|
88
|
-
* @
|
|
91
|
+
* @param operationId The long running operation id.
|
|
92
|
+
* @param options The options parameters.
|
|
89
93
|
*/
|
|
90
|
-
|
|
94
|
+
getAzureAsyncOperationStatus(
|
|
95
|
+
location: string,
|
|
96
|
+
operationId: string,
|
|
97
|
+
options?: LocationsGetAzureAsyncOperationStatusOptionalParams
|
|
98
|
+
): Promise<LocationsGetAzureAsyncOperationStatusResponse> {
|
|
99
|
+
return this.client.sendOperationRequest(
|
|
100
|
+
{ location, operationId, options },
|
|
101
|
+
getAzureAsyncOperationStatusOperationSpec
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
|
|
91
105
|
/**
|
|
106
|
+
* Check the cluster name is available or not.
|
|
92
107
|
* @param location The Azure location (region) for which to make the request.
|
|
93
|
-
* @param
|
|
108
|
+
* @param parameters The request spec of checking name availability.
|
|
109
|
+
* @param options The options parameters.
|
|
94
110
|
*/
|
|
95
|
-
|
|
111
|
+
checkNameAvailability(
|
|
112
|
+
location: string,
|
|
113
|
+
parameters: NameAvailabilityCheckRequestParameters,
|
|
114
|
+
options?: LocationsCheckNameAvailabilityOptionalParams
|
|
115
|
+
): Promise<LocationsCheckNameAvailabilityResponse> {
|
|
116
|
+
return this.client.sendOperationRequest(
|
|
117
|
+
{ location, parameters, options },
|
|
118
|
+
checkNameAvailabilityOperationSpec
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
|
|
96
122
|
/**
|
|
123
|
+
* Validate the cluster create request spec is valid or not.
|
|
97
124
|
* @param location The Azure location (region) for which to make the request.
|
|
98
|
-
* @param
|
|
99
|
-
* @param
|
|
125
|
+
* @param parameters The cluster create request specification.
|
|
126
|
+
* @param options The options parameters.
|
|
100
127
|
*/
|
|
101
|
-
|
|
102
|
-
|
|
128
|
+
validateClusterCreateRequest(
|
|
129
|
+
location: string,
|
|
130
|
+
parameters: ClusterCreateRequestValidationParameters,
|
|
131
|
+
options?: LocationsValidateClusterCreateRequestOptionalParams
|
|
132
|
+
): Promise<LocationsValidateClusterCreateRequestResponse> {
|
|
103
133
|
return this.client.sendOperationRequest(
|
|
104
|
-
{
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
},
|
|
108
|
-
listBillingSpecsOperationSpec,
|
|
109
|
-
callback) as Promise<Models.LocationsListBillingSpecsResponse>;
|
|
134
|
+
{ location, parameters, options },
|
|
135
|
+
validateClusterCreateRequestOperationSpec
|
|
136
|
+
);
|
|
110
137
|
}
|
|
111
138
|
}
|
|
112
|
-
|
|
113
139
|
// Operation Specifications
|
|
114
|
-
const serializer =
|
|
115
|
-
|
|
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",
|
|
116
145
|
httpMethod: "GET",
|
|
117
|
-
|
|
146
|
+
responses: {
|
|
147
|
+
200: {
|
|
148
|
+
bodyMapper: Mappers.CapabilitiesResult
|
|
149
|
+
},
|
|
150
|
+
default: {
|
|
151
|
+
bodyMapper: Mappers.ErrorResponse
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
queryParameters: [Parameters.apiVersion],
|
|
118
155
|
urlParameters: [
|
|
156
|
+
Parameters.$host,
|
|
119
157
|
Parameters.subscriptionId,
|
|
120
158
|
Parameters.location
|
|
121
159
|
],
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
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",
|
|
128
167
|
responses: {
|
|
129
168
|
200: {
|
|
130
|
-
bodyMapper: Mappers.
|
|
169
|
+
bodyMapper: Mappers.UsagesListResult
|
|
131
170
|
},
|
|
132
171
|
default: {
|
|
133
172
|
bodyMapper: Mappers.ErrorResponse
|
|
134
173
|
}
|
|
135
174
|
},
|
|
175
|
+
queryParameters: [Parameters.apiVersion],
|
|
176
|
+
urlParameters: [
|
|
177
|
+
Parameters.$host,
|
|
178
|
+
Parameters.subscriptionId,
|
|
179
|
+
Parameters.location
|
|
180
|
+
],
|
|
181
|
+
headerParameters: [Parameters.accept],
|
|
136
182
|
serializer
|
|
137
183
|
};
|
|
138
|
-
|
|
139
|
-
|
|
184
|
+
const listBillingSpecsOperationSpec: coreClient.OperationSpec = {
|
|
185
|
+
path:
|
|
186
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/billingSpecs",
|
|
140
187
|
httpMethod: "GET",
|
|
141
|
-
|
|
188
|
+
responses: {
|
|
189
|
+
200: {
|
|
190
|
+
bodyMapper: Mappers.BillingResponseListResult
|
|
191
|
+
},
|
|
192
|
+
default: {
|
|
193
|
+
bodyMapper: Mappers.ErrorResponse
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
queryParameters: [Parameters.apiVersion],
|
|
142
197
|
urlParameters: [
|
|
198
|
+
Parameters.$host,
|
|
143
199
|
Parameters.subscriptionId,
|
|
144
200
|
Parameters.location
|
|
145
201
|
],
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
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",
|
|
152
209
|
responses: {
|
|
153
210
|
200: {
|
|
154
|
-
bodyMapper: Mappers.
|
|
211
|
+
bodyMapper: Mappers.AsyncOperationResult
|
|
155
212
|
},
|
|
156
213
|
default: {
|
|
157
214
|
bodyMapper: Mappers.ErrorResponse
|
|
158
215
|
}
|
|
159
216
|
},
|
|
217
|
+
queryParameters: [Parameters.apiVersion],
|
|
218
|
+
urlParameters: [
|
|
219
|
+
Parameters.$host,
|
|
220
|
+
Parameters.subscriptionId,
|
|
221
|
+
Parameters.operationId,
|
|
222
|
+
Parameters.location
|
|
223
|
+
],
|
|
224
|
+
headerParameters: [Parameters.accept],
|
|
160
225
|
serializer
|
|
161
226
|
};
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
227
|
+
const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {
|
|
228
|
+
path:
|
|
229
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/checkNameAvailability",
|
|
230
|
+
httpMethod: "POST",
|
|
231
|
+
responses: {
|
|
232
|
+
200: {
|
|
233
|
+
bodyMapper: Mappers.NameAvailabilityCheckResult
|
|
234
|
+
},
|
|
235
|
+
default: {
|
|
236
|
+
bodyMapper: Mappers.ErrorResponse
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
requestBody: Parameters.parameters9,
|
|
240
|
+
queryParameters: [Parameters.apiVersion],
|
|
166
241
|
urlParameters: [
|
|
242
|
+
Parameters.$host,
|
|
167
243
|
Parameters.subscriptionId,
|
|
168
244
|
Parameters.location
|
|
169
245
|
],
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
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",
|
|
176
254
|
responses: {
|
|
177
255
|
200: {
|
|
178
|
-
bodyMapper: Mappers.
|
|
256
|
+
bodyMapper: Mappers.ClusterCreateValidationResult
|
|
179
257
|
},
|
|
180
258
|
default: {
|
|
181
259
|
bodyMapper: Mappers.ErrorResponse
|
|
182
260
|
}
|
|
183
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",
|
|
184
271
|
serializer
|
|
185
272
|
};
|
|
@@ -3,92 +3,109 @@
|
|
|
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
|
|
12
|
-
import * as
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Operations } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { HDInsightManagementClient } from "../hDInsightManagementClient";
|
|
15
|
+
import {
|
|
16
|
+
Operation,
|
|
17
|
+
OperationsListNextOptionalParams,
|
|
18
|
+
OperationsListOptionalParams,
|
|
19
|
+
OperationsListResponse,
|
|
20
|
+
OperationsListNextResponse
|
|
21
|
+
} from "../models";
|
|
15
22
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
|
24
|
+
/** Class containing Operations operations. */
|
|
25
|
+
export class OperationsImpl implements Operations {
|
|
26
|
+
private readonly client: HDInsightManagementClient;
|
|
19
27
|
|
|
20
28
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @param
|
|
29
|
+
* Initialize a new instance of the class Operations class.
|
|
30
|
+
* @param client Reference to the service client
|
|
23
31
|
*/
|
|
24
|
-
constructor(client:
|
|
32
|
+
constructor(client: HDInsightManagementClient) {
|
|
25
33
|
this.client = client;
|
|
26
34
|
}
|
|
27
35
|
|
|
28
36
|
/**
|
|
29
37
|
* Lists all of the available HDInsight REST API operations.
|
|
30
|
-
* @param
|
|
31
|
-
* @returns Promise<Models.OperationsListResponse>
|
|
38
|
+
* @param options The options parameters.
|
|
32
39
|
*/
|
|
33
|
-
list(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationListResult>, callback?: msRest.ServiceCallback<Models.OperationListResult>): Promise<Models.OperationsListResponse> {
|
|
44
|
-
return this.client.sendOperationRequest(
|
|
45
|
-
{
|
|
46
|
-
options
|
|
40
|
+
public list(
|
|
41
|
+
options?: OperationsListOptionalParams
|
|
42
|
+
): PagedAsyncIterableIterator<Operation> {
|
|
43
|
+
const iter = this.listPagingAll(options);
|
|
44
|
+
return {
|
|
45
|
+
next() {
|
|
46
|
+
return iter.next();
|
|
47
|
+
},
|
|
48
|
+
[Symbol.asyncIterator]() {
|
|
49
|
+
return this;
|
|
47
50
|
},
|
|
48
|
-
|
|
49
|
-
|
|
51
|
+
byPage: () => {
|
|
52
|
+
return this.listPagingPage(options);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
private async *listPagingPage(
|
|
58
|
+
options?: OperationsListOptionalParams
|
|
59
|
+
): AsyncIterableIterator<Operation[]> {
|
|
60
|
+
let result = await this._list(options);
|
|
61
|
+
yield result.value || [];
|
|
62
|
+
let continuationToken = result.nextLink;
|
|
63
|
+
while (continuationToken) {
|
|
64
|
+
result = await this._listNext(continuationToken, options);
|
|
65
|
+
continuationToken = result.nextLink;
|
|
66
|
+
yield result.value || [];
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
private async *listPagingAll(
|
|
71
|
+
options?: OperationsListOptionalParams
|
|
72
|
+
): AsyncIterableIterator<Operation> {
|
|
73
|
+
for await (const page of this.listPagingPage(options)) {
|
|
74
|
+
yield* page;
|
|
75
|
+
}
|
|
50
76
|
}
|
|
51
77
|
|
|
52
78
|
/**
|
|
53
79
|
* Lists all of the available HDInsight REST API operations.
|
|
54
|
-
* @param
|
|
55
|
-
* @param [options] The optional parameters
|
|
56
|
-
* @returns Promise<Models.OperationsListNextResponse>
|
|
57
|
-
*/
|
|
58
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.OperationsListNextResponse>;
|
|
59
|
-
/**
|
|
60
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
61
|
-
* @param callback The callback
|
|
80
|
+
* @param options The options parameters.
|
|
62
81
|
*/
|
|
63
|
-
|
|
82
|
+
private _list(
|
|
83
|
+
options?: OperationsListOptionalParams
|
|
84
|
+
): Promise<OperationsListResponse> {
|
|
85
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
86
|
+
}
|
|
87
|
+
|
|
64
88
|
/**
|
|
65
|
-
*
|
|
66
|
-
* @param
|
|
67
|
-
* @param
|
|
89
|
+
* ListNext
|
|
90
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
91
|
+
* @param options The options parameters.
|
|
68
92
|
*/
|
|
69
|
-
|
|
70
|
-
|
|
93
|
+
private _listNext(
|
|
94
|
+
nextLink: string,
|
|
95
|
+
options?: OperationsListNextOptionalParams
|
|
96
|
+
): Promise<OperationsListNextResponse> {
|
|
71
97
|
return this.client.sendOperationRequest(
|
|
72
|
-
{
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
},
|
|
76
|
-
listNextOperationSpec,
|
|
77
|
-
callback) as Promise<Models.OperationsListNextResponse>;
|
|
98
|
+
{ nextLink, options },
|
|
99
|
+
listNextOperationSpec
|
|
100
|
+
);
|
|
78
101
|
}
|
|
79
102
|
}
|
|
80
|
-
|
|
81
103
|
// Operation Specifications
|
|
82
|
-
const serializer =
|
|
83
|
-
|
|
104
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
105
|
+
|
|
106
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
107
|
+
path: "/providers/Microsoft.HDInsight/operations",
|
|
84
108
|
httpMethod: "GET",
|
|
85
|
-
path: "providers/Microsoft.HDInsight/operations",
|
|
86
|
-
queryParameters: [
|
|
87
|
-
Parameters.apiVersion
|
|
88
|
-
],
|
|
89
|
-
headerParameters: [
|
|
90
|
-
Parameters.acceptLanguage
|
|
91
|
-
],
|
|
92
109
|
responses: {
|
|
93
110
|
200: {
|
|
94
111
|
bodyMapper: Mappers.OperationListResult
|
|
@@ -97,22 +114,14 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
|
97
114
|
bodyMapper: Mappers.ErrorResponse
|
|
98
115
|
}
|
|
99
116
|
},
|
|
117
|
+
queryParameters: [Parameters.apiVersion],
|
|
118
|
+
urlParameters: [Parameters.$host],
|
|
119
|
+
headerParameters: [Parameters.accept],
|
|
100
120
|
serializer
|
|
101
121
|
};
|
|
102
|
-
|
|
103
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
104
|
-
httpMethod: "GET",
|
|
105
|
-
baseUrl: "https://management.azure.com",
|
|
122
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
106
123
|
path: "{nextLink}",
|
|
107
|
-
|
|
108
|
-
Parameters.nextPageLink
|
|
109
|
-
],
|
|
110
|
-
queryParameters: [
|
|
111
|
-
Parameters.apiVersion
|
|
112
|
-
],
|
|
113
|
-
headerParameters: [
|
|
114
|
-
Parameters.acceptLanguage
|
|
115
|
-
],
|
|
124
|
+
httpMethod: "GET",
|
|
116
125
|
responses: {
|
|
117
126
|
200: {
|
|
118
127
|
bodyMapper: Mappers.OperationListResult
|
|
@@ -121,5 +130,8 @@ const listNextOperationSpec: msRest.OperationSpec = {
|
|
|
121
130
|
bodyMapper: Mappers.ErrorResponse
|
|
122
131
|
}
|
|
123
132
|
},
|
|
133
|
+
queryParameters: [Parameters.apiVersion],
|
|
134
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
135
|
+
headerParameters: [Parameters.accept],
|
|
124
136
|
serializer
|
|
125
137
|
};
|