@azure/arm-azurestackhci 1.1.1 → 2.0.1-alpha.20220119.1
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 +21 -0
- package/LICENSE +21 -0
- package/README.md +69 -80
- package/dist/index.js +2369 -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/azureStackHCIClient.d.ts +21 -0
- package/dist-esm/src/azureStackHCIClient.d.ts.map +1 -0
- package/dist-esm/src/azureStackHCIClient.js +54 -0
- package/dist-esm/src/azureStackHCIClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- 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 +864 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +135 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +23 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +881 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +16 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +137 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/arcSettings.d.ts +72 -0
- package/dist-esm/src/operations/arcSettings.d.ts.map +1 -0
- package/dist-esm/src/operations/arcSettings.js +281 -0
- package/dist-esm/src/operations/arcSettings.js.map +1 -0
- package/dist-esm/src/operations/clusters.d.ts +83 -0
- package/dist-esm/src/operations/clusters.d.ts.map +1 -0
- package/dist-esm/src/operations/clusters.js +356 -0
- package/dist-esm/src/operations/clusters.js.map +1 -0
- package/dist-esm/src/operations/extensions.d.ts +109 -0
- package/dist-esm/src/operations/extensions.d.ts.map +1 -0
- package/dist-esm/src/operations/extensions.js +462 -0
- package/dist-esm/src/operations/extensions.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +5 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +12 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +18 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +46 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/arcSettings.d.ts +47 -0
- package/dist-esm/src/operationsInterfaces/arcSettings.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/arcSettings.js +9 -0
- package/dist-esm/src/operationsInterfaces/arcSettings.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts +47 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/clusters.js +9 -0
- package/dist-esm/src/operationsInterfaces/clusters.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/extensions.d.ts +82 -0
- package/dist-esm/src/operationsInterfaces/extensions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/extensions.js +9 -0
- package/dist-esm/src/operationsInterfaces/extensions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +12 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +10 -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/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 -22
- package/review/arm-azurestackhci.api.md +650 -0
- package/rollup.config.js +181 -30
- package/src/azureStackHCIClient.ts +78 -37
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +775 -366
- package/src/models/mappers.ts +635 -239
- package/src/models/parameters.ts +112 -35
- package/src/operations/arcSettings.ts +394 -0
- package/src/operations/clusters.ts +279 -309
- package/src/operations/extensions.ts +672 -0
- package/src/operations/index.ts +6 -6
- package/src/operations/operations.ts +30 -45
- package/src/operationsInterfaces/arcSettings.ts +89 -0
- package/src/operationsInterfaces/clusters.ts +91 -0
- package/src/operationsInterfaces/extensions.ts +162 -0
- package/src/operationsInterfaces/index.ts +12 -0
- package/src/operationsInterfaces/operations.ts +21 -0
- package/tsconfig.json +3 -3
- package/types/arm-azurestackhci.d.ts +1146 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-azurestackhci.js +0 -1151
- package/dist/arm-azurestackhci.js.map +0 -1
- package/dist/arm-azurestackhci.min.js +0 -1
- package/dist/arm-azurestackhci.min.js.map +0 -1
- package/esm/azureStackHCIClient.d.ts +0 -25
- package/esm/azureStackHCIClient.d.ts.map +0 -1
- package/esm/azureStackHCIClient.js +0 -39
- package/esm/azureStackHCIClient.js.map +0 -1
- package/esm/azureStackHCIClientContext.d.ts +0 -22
- package/esm/azureStackHCIClientContext.d.ts.map +0 -1
- package/esm/azureStackHCIClientContext.js +0 -61
- package/esm/azureStackHCIClientContext.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/index.d.ts +0 -509
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -19
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js +0 -527
- 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 -8
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -82
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/clusters.d.ts +0 -169
- package/esm/operations/clusters.d.ts.map +0 -1
- package/esm/operations/clusters.js +0 -273
- package/esm/operations/clusters.js.map +0 -1
- package/esm/operations/index.d.ts +0 -3
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js +0 -12
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -28
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -51
- package/esm/operations/operations.js.map +0 -1
- package/src/azureStackHCIClientContext.ts +0 -68
- package/src/models/clustersMappers.ts +0 -23
- package/src/models/operationsMappers.ts +0 -16
|
@@ -1,74 +1,59 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
13
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { Operations } from "../operationsInterfaces";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
14
12
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
13
|
+
import { AzureStackHCIClient } from "../azureStackHCIClient";
|
|
14
|
+
import {
|
|
15
|
+
OperationsListOptionalParams,
|
|
16
|
+
OperationsListResponse
|
|
17
|
+
} from "../models";
|
|
16
18
|
|
|
17
|
-
/** Class
|
|
18
|
-
export class Operations {
|
|
19
|
-
private readonly client:
|
|
19
|
+
/** Class containing Operations operations. */
|
|
20
|
+
export class OperationsImpl implements Operations {
|
|
21
|
+
private readonly client: AzureStackHCIClient;
|
|
20
22
|
|
|
21
23
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
24
|
+
* Initialize a new instance of the class Operations class.
|
|
25
|
+
* @param client Reference to the service client
|
|
24
26
|
*/
|
|
25
|
-
constructor(client:
|
|
27
|
+
constructor(client: AzureStackHCIClient) {
|
|
26
28
|
this.client = client;
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
/**
|
|
30
32
|
* List all available Microsoft.AzureStackHCI provider operations
|
|
31
|
-
* @param
|
|
32
|
-
* @returns Promise<Models.OperationsListResponse>
|
|
33
|
+
* @param options The options parameters.
|
|
33
34
|
*/
|
|
34
|
-
list(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
list(callback: msRest.ServiceCallback<Models.AvailableOperations>): void;
|
|
39
|
-
/**
|
|
40
|
-
* @param options The optional parameters
|
|
41
|
-
* @param callback The callback
|
|
42
|
-
*/
|
|
43
|
-
list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AvailableOperations>): void;
|
|
44
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AvailableOperations>, callback?: msRest.ServiceCallback<Models.AvailableOperations>): Promise<Models.OperationsListResponse> {
|
|
45
|
-
return this.client.sendOperationRequest(
|
|
46
|
-
{
|
|
47
|
-
options
|
|
48
|
-
},
|
|
49
|
-
listOperationSpec,
|
|
50
|
-
callback) as Promise<Models.OperationsListResponse>;
|
|
35
|
+
list(
|
|
36
|
+
options?: OperationsListOptionalParams
|
|
37
|
+
): Promise<OperationsListResponse> {
|
|
38
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
51
39
|
}
|
|
52
40
|
}
|
|
53
|
-
|
|
54
41
|
// Operation Specifications
|
|
55
|
-
const serializer =
|
|
56
|
-
|
|
42
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
43
|
+
|
|
44
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
45
|
+
path: "/providers/Microsoft.AzureStackHCI/operations",
|
|
57
46
|
httpMethod: "GET",
|
|
58
|
-
path: "providers/Microsoft.AzureStackHCI/operations",
|
|
59
|
-
queryParameters: [
|
|
60
|
-
Parameters.apiVersion
|
|
61
|
-
],
|
|
62
|
-
headerParameters: [
|
|
63
|
-
Parameters.acceptLanguage
|
|
64
|
-
],
|
|
65
47
|
responses: {
|
|
66
48
|
200: {
|
|
67
|
-
bodyMapper: Mappers.
|
|
49
|
+
bodyMapper: Mappers.OperationListResult
|
|
68
50
|
},
|
|
69
51
|
default: {
|
|
70
52
|
bodyMapper: Mappers.ErrorResponse
|
|
71
53
|
}
|
|
72
54
|
},
|
|
55
|
+
queryParameters: [Parameters.apiVersion],
|
|
56
|
+
urlParameters: [Parameters.$host],
|
|
57
|
+
headerParameters: [Parameters.accept],
|
|
73
58
|
serializer
|
|
74
59
|
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
11
|
+
import {
|
|
12
|
+
ArcSetting,
|
|
13
|
+
ArcSettingsListByClusterOptionalParams,
|
|
14
|
+
ArcSettingsGetOptionalParams,
|
|
15
|
+
ArcSettingsGetResponse,
|
|
16
|
+
ArcSettingsCreateOptionalParams,
|
|
17
|
+
ArcSettingsCreateResponse,
|
|
18
|
+
ArcSettingsDeleteOptionalParams
|
|
19
|
+
} from "../models";
|
|
20
|
+
|
|
21
|
+
/// <reference lib="esnext.asynciterable" />
|
|
22
|
+
/** Interface representing a ArcSettings. */
|
|
23
|
+
export interface ArcSettings {
|
|
24
|
+
/**
|
|
25
|
+
* Get ArcSetting resources of HCI Cluster.
|
|
26
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
27
|
+
* @param clusterName The name of the cluster.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
listByCluster(
|
|
31
|
+
resourceGroupName: string,
|
|
32
|
+
clusterName: string,
|
|
33
|
+
options?: ArcSettingsListByClusterOptionalParams
|
|
34
|
+
): PagedAsyncIterableIterator<ArcSetting>;
|
|
35
|
+
/**
|
|
36
|
+
* Get ArcSetting resource details of HCI Cluster.
|
|
37
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
38
|
+
* @param clusterName The name of the cluster.
|
|
39
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
40
|
+
* @param options The options parameters.
|
|
41
|
+
*/
|
|
42
|
+
get(
|
|
43
|
+
resourceGroupName: string,
|
|
44
|
+
clusterName: string,
|
|
45
|
+
arcSettingName: string,
|
|
46
|
+
options?: ArcSettingsGetOptionalParams
|
|
47
|
+
): Promise<ArcSettingsGetResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* Create ArcSetting for HCI cluster.
|
|
50
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
51
|
+
* @param clusterName The name of the cluster.
|
|
52
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
53
|
+
* @param arcSetting Parameters supplied to the Create ArcSetting resource for this HCI cluster.
|
|
54
|
+
* @param options The options parameters.
|
|
55
|
+
*/
|
|
56
|
+
create(
|
|
57
|
+
resourceGroupName: string,
|
|
58
|
+
clusterName: string,
|
|
59
|
+
arcSettingName: string,
|
|
60
|
+
arcSetting: ArcSetting,
|
|
61
|
+
options?: ArcSettingsCreateOptionalParams
|
|
62
|
+
): Promise<ArcSettingsCreateResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* Delete ArcSetting resource details of HCI Cluster.
|
|
65
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
66
|
+
* @param clusterName The name of the cluster.
|
|
67
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
68
|
+
* @param options The options parameters.
|
|
69
|
+
*/
|
|
70
|
+
beginDelete(
|
|
71
|
+
resourceGroupName: string,
|
|
72
|
+
clusterName: string,
|
|
73
|
+
arcSettingName: string,
|
|
74
|
+
options?: ArcSettingsDeleteOptionalParams
|
|
75
|
+
): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
76
|
+
/**
|
|
77
|
+
* Delete ArcSetting resource details of HCI Cluster.
|
|
78
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
79
|
+
* @param clusterName The name of the cluster.
|
|
80
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
81
|
+
* @param options The options parameters.
|
|
82
|
+
*/
|
|
83
|
+
beginDeleteAndWait(
|
|
84
|
+
resourceGroupName: string,
|
|
85
|
+
clusterName: string,
|
|
86
|
+
arcSettingName: string,
|
|
87
|
+
options?: ArcSettingsDeleteOptionalParams
|
|
88
|
+
): Promise<void>;
|
|
89
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import {
|
|
11
|
+
Cluster,
|
|
12
|
+
ClustersListBySubscriptionOptionalParams,
|
|
13
|
+
ClustersListByResourceGroupOptionalParams,
|
|
14
|
+
ClustersGetOptionalParams,
|
|
15
|
+
ClustersGetResponse,
|
|
16
|
+
ClustersCreateOptionalParams,
|
|
17
|
+
ClustersCreateResponse,
|
|
18
|
+
ClusterPatch,
|
|
19
|
+
ClustersUpdateOptionalParams,
|
|
20
|
+
ClustersUpdateResponse,
|
|
21
|
+
ClustersDeleteOptionalParams
|
|
22
|
+
} from "../models";
|
|
23
|
+
|
|
24
|
+
/// <reference lib="esnext.asynciterable" />
|
|
25
|
+
/** Interface representing a Clusters. */
|
|
26
|
+
export interface Clusters {
|
|
27
|
+
/**
|
|
28
|
+
* List all HCI clusters in a subscription.
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
listBySubscription(
|
|
32
|
+
options?: ClustersListBySubscriptionOptionalParams
|
|
33
|
+
): PagedAsyncIterableIterator<Cluster>;
|
|
34
|
+
/**
|
|
35
|
+
* List all HCI clusters in a resource group.
|
|
36
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
37
|
+
* @param options The options parameters.
|
|
38
|
+
*/
|
|
39
|
+
listByResourceGroup(
|
|
40
|
+
resourceGroupName: string,
|
|
41
|
+
options?: ClustersListByResourceGroupOptionalParams
|
|
42
|
+
): PagedAsyncIterableIterator<Cluster>;
|
|
43
|
+
/**
|
|
44
|
+
* Get HCI cluster.
|
|
45
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
46
|
+
* @param clusterName The name of the cluster.
|
|
47
|
+
* @param options The options parameters.
|
|
48
|
+
*/
|
|
49
|
+
get(
|
|
50
|
+
resourceGroupName: string,
|
|
51
|
+
clusterName: string,
|
|
52
|
+
options?: ClustersGetOptionalParams
|
|
53
|
+
): Promise<ClustersGetResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* Create an HCI cluster.
|
|
56
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
57
|
+
* @param clusterName The name of the cluster.
|
|
58
|
+
* @param cluster Details of the HCI cluster.
|
|
59
|
+
* @param options The options parameters.
|
|
60
|
+
*/
|
|
61
|
+
create(
|
|
62
|
+
resourceGroupName: string,
|
|
63
|
+
clusterName: string,
|
|
64
|
+
cluster: Cluster,
|
|
65
|
+
options?: ClustersCreateOptionalParams
|
|
66
|
+
): Promise<ClustersCreateResponse>;
|
|
67
|
+
/**
|
|
68
|
+
* Update an HCI cluster.
|
|
69
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
70
|
+
* @param clusterName The name of the cluster.
|
|
71
|
+
* @param cluster Details of the HCI cluster.
|
|
72
|
+
* @param options The options parameters.
|
|
73
|
+
*/
|
|
74
|
+
update(
|
|
75
|
+
resourceGroupName: string,
|
|
76
|
+
clusterName: string,
|
|
77
|
+
cluster: ClusterPatch,
|
|
78
|
+
options?: ClustersUpdateOptionalParams
|
|
79
|
+
): Promise<ClustersUpdateResponse>;
|
|
80
|
+
/**
|
|
81
|
+
* Delete an HCI cluster.
|
|
82
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
83
|
+
* @param clusterName The name of the cluster.
|
|
84
|
+
* @param options The options parameters.
|
|
85
|
+
*/
|
|
86
|
+
delete(
|
|
87
|
+
resourceGroupName: string,
|
|
88
|
+
clusterName: string,
|
|
89
|
+
options?: ClustersDeleteOptionalParams
|
|
90
|
+
): Promise<void>;
|
|
91
|
+
}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
11
|
+
import {
|
|
12
|
+
Extension,
|
|
13
|
+
ExtensionsListByArcSettingOptionalParams,
|
|
14
|
+
ExtensionsGetOptionalParams,
|
|
15
|
+
ExtensionsGetResponse,
|
|
16
|
+
ExtensionsCreateOptionalParams,
|
|
17
|
+
ExtensionsCreateResponse,
|
|
18
|
+
ExtensionsUpdateOptionalParams,
|
|
19
|
+
ExtensionsUpdateResponse,
|
|
20
|
+
ExtensionsDeleteOptionalParams
|
|
21
|
+
} from "../models";
|
|
22
|
+
|
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
|
24
|
+
/** Interface representing a Extensions. */
|
|
25
|
+
export interface Extensions {
|
|
26
|
+
/**
|
|
27
|
+
* List all Extensions under ArcSetting resource.
|
|
28
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
29
|
+
* @param clusterName The name of the cluster.
|
|
30
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
31
|
+
* @param options The options parameters.
|
|
32
|
+
*/
|
|
33
|
+
listByArcSetting(
|
|
34
|
+
resourceGroupName: string,
|
|
35
|
+
clusterName: string,
|
|
36
|
+
arcSettingName: string,
|
|
37
|
+
options?: ExtensionsListByArcSettingOptionalParams
|
|
38
|
+
): PagedAsyncIterableIterator<Extension>;
|
|
39
|
+
/**
|
|
40
|
+
* Get particular Arc Extension of HCI Cluster.
|
|
41
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
42
|
+
* @param clusterName The name of the cluster.
|
|
43
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
44
|
+
* @param extensionName The name of the machine extension.
|
|
45
|
+
* @param options The options parameters.
|
|
46
|
+
*/
|
|
47
|
+
get(
|
|
48
|
+
resourceGroupName: string,
|
|
49
|
+
clusterName: string,
|
|
50
|
+
arcSettingName: string,
|
|
51
|
+
extensionName: string,
|
|
52
|
+
options?: ExtensionsGetOptionalParams
|
|
53
|
+
): Promise<ExtensionsGetResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* Create Extension for HCI cluster.
|
|
56
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
57
|
+
* @param clusterName The name of the cluster.
|
|
58
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
59
|
+
* @param extensionName The name of the machine extension.
|
|
60
|
+
* @param extension Details of the Machine Extension to be created.
|
|
61
|
+
* @param options The options parameters.
|
|
62
|
+
*/
|
|
63
|
+
beginCreate(
|
|
64
|
+
resourceGroupName: string,
|
|
65
|
+
clusterName: string,
|
|
66
|
+
arcSettingName: string,
|
|
67
|
+
extensionName: string,
|
|
68
|
+
extension: Extension,
|
|
69
|
+
options?: ExtensionsCreateOptionalParams
|
|
70
|
+
): Promise<
|
|
71
|
+
PollerLike<
|
|
72
|
+
PollOperationState<ExtensionsCreateResponse>,
|
|
73
|
+
ExtensionsCreateResponse
|
|
74
|
+
>
|
|
75
|
+
>;
|
|
76
|
+
/**
|
|
77
|
+
* Create Extension for HCI cluster.
|
|
78
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
79
|
+
* @param clusterName The name of the cluster.
|
|
80
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
81
|
+
* @param extensionName The name of the machine extension.
|
|
82
|
+
* @param extension Details of the Machine Extension to be created.
|
|
83
|
+
* @param options The options parameters.
|
|
84
|
+
*/
|
|
85
|
+
beginCreateAndWait(
|
|
86
|
+
resourceGroupName: string,
|
|
87
|
+
clusterName: string,
|
|
88
|
+
arcSettingName: string,
|
|
89
|
+
extensionName: string,
|
|
90
|
+
extension: Extension,
|
|
91
|
+
options?: ExtensionsCreateOptionalParams
|
|
92
|
+
): Promise<ExtensionsCreateResponse>;
|
|
93
|
+
/**
|
|
94
|
+
* Update Extension for HCI cluster.
|
|
95
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
96
|
+
* @param clusterName The name of the cluster.
|
|
97
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
98
|
+
* @param extensionName The name of the machine extension.
|
|
99
|
+
* @param extension Details of the Machine Extension to be created.
|
|
100
|
+
* @param options The options parameters.
|
|
101
|
+
*/
|
|
102
|
+
beginUpdate(
|
|
103
|
+
resourceGroupName: string,
|
|
104
|
+
clusterName: string,
|
|
105
|
+
arcSettingName: string,
|
|
106
|
+
extensionName: string,
|
|
107
|
+
extension: Extension,
|
|
108
|
+
options?: ExtensionsUpdateOptionalParams
|
|
109
|
+
): Promise<
|
|
110
|
+
PollerLike<
|
|
111
|
+
PollOperationState<ExtensionsUpdateResponse>,
|
|
112
|
+
ExtensionsUpdateResponse
|
|
113
|
+
>
|
|
114
|
+
>;
|
|
115
|
+
/**
|
|
116
|
+
* Update Extension for HCI cluster.
|
|
117
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
118
|
+
* @param clusterName The name of the cluster.
|
|
119
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
120
|
+
* @param extensionName The name of the machine extension.
|
|
121
|
+
* @param extension Details of the Machine Extension to be created.
|
|
122
|
+
* @param options The options parameters.
|
|
123
|
+
*/
|
|
124
|
+
beginUpdateAndWait(
|
|
125
|
+
resourceGroupName: string,
|
|
126
|
+
clusterName: string,
|
|
127
|
+
arcSettingName: string,
|
|
128
|
+
extensionName: string,
|
|
129
|
+
extension: Extension,
|
|
130
|
+
options?: ExtensionsUpdateOptionalParams
|
|
131
|
+
): Promise<ExtensionsUpdateResponse>;
|
|
132
|
+
/**
|
|
133
|
+
* Delete particular Arc Extension of HCI Cluster.
|
|
134
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
135
|
+
* @param clusterName The name of the cluster.
|
|
136
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
137
|
+
* @param extensionName The name of the machine extension.
|
|
138
|
+
* @param options The options parameters.
|
|
139
|
+
*/
|
|
140
|
+
beginDelete(
|
|
141
|
+
resourceGroupName: string,
|
|
142
|
+
clusterName: string,
|
|
143
|
+
arcSettingName: string,
|
|
144
|
+
extensionName: string,
|
|
145
|
+
options?: ExtensionsDeleteOptionalParams
|
|
146
|
+
): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
147
|
+
/**
|
|
148
|
+
* Delete particular Arc Extension of HCI Cluster.
|
|
149
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
150
|
+
* @param clusterName The name of the cluster.
|
|
151
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
152
|
+
* @param extensionName The name of the machine extension.
|
|
153
|
+
* @param options The options parameters.
|
|
154
|
+
*/
|
|
155
|
+
beginDeleteAndWait(
|
|
156
|
+
resourceGroupName: string,
|
|
157
|
+
clusterName: string,
|
|
158
|
+
arcSettingName: string,
|
|
159
|
+
extensionName: string,
|
|
160
|
+
options?: ExtensionsDeleteOptionalParams
|
|
161
|
+
): Promise<void>;
|
|
162
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export * from "./arcSettings";
|
|
10
|
+
export * from "./clusters";
|
|
11
|
+
export * from "./extensions";
|
|
12
|
+
export * from "./operations";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
OperationsListOptionalParams,
|
|
11
|
+
OperationsListResponse
|
|
12
|
+
} from "../models";
|
|
13
|
+
|
|
14
|
+
/** Interface representing a Operations. */
|
|
15
|
+
export interface Operations {
|
|
16
|
+
/**
|
|
17
|
+
* List all available Microsoft.AzureStackHCI provider operations
|
|
18
|
+
* @param options The options parameters.
|
|
19
|
+
*/
|
|
20
|
+
list(options?: OperationsListOptionalParams): Promise<OperationsListResponse>;
|
|
21
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"module": "es6",
|
|
4
4
|
"moduleResolution": "node",
|
|
5
5
|
"strict": true,
|
|
6
|
-
"target": "
|
|
6
|
+
"target": "es6",
|
|
7
7
|
"sourceMap": true,
|
|
8
8
|
"declarationMap": true,
|
|
9
9
|
"esModuleInterop": true,
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"forceConsistentCasingInFileNames": true,
|
|
12
12
|
"lib": ["es6", "dom"],
|
|
13
13
|
"declaration": true,
|
|
14
|
-
"outDir": "./esm",
|
|
14
|
+
"outDir": "./dist-esm",
|
|
15
15
|
"importHelpers": true
|
|
16
16
|
},
|
|
17
|
-
"include": ["./src/**/*.ts"],
|
|
17
|
+
"include": ["./src/**/*.ts", "./test/**/*.ts"],
|
|
18
18
|
"exclude": ["node_modules"]
|
|
19
19
|
}
|