@azure/arm-containerservicefleet 1.0.0-alpha.20230620.2
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 +21 -0
- package/README.md +109 -0
- package/dist/index.js +3169 -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/samples-dev/fleetMembersCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetMembersCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetMembersCreateSample.js +42 -0
- package/dist-esm/samples-dev/fleetMembersCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/fleetMembersDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetMembersDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetMembersDeleteSample.js +39 -0
- package/dist-esm/samples-dev/fleetMembersDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/fleetMembersGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetMembersGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetMembersGetSample.js +39 -0
- package/dist-esm/samples-dev/fleetMembersGetSample.js.map +1 -0
- package/dist-esm/samples-dev/fleetMembersListByFleetSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetMembersListByFleetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetMembersListByFleetSample.js +59 -0
- package/dist-esm/samples-dev/fleetMembersListByFleetSample.js.map +1 -0
- package/dist-esm/samples-dev/fleetMembersUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetMembersUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetMembersUpdateSample.js +40 -0
- package/dist-esm/samples-dev/fleetMembersUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/fleetsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetsCreateOrUpdateSample.js +43 -0
- package/dist-esm/samples-dev/fleetsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/fleetsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetsDeleteSample.js +38 -0
- package/dist-esm/samples-dev/fleetsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/fleetsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetsGetSample.js +38 -0
- package/dist-esm/samples-dev/fleetsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/fleetsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetsListByResourceGroupSample.js +58 -0
- package/dist-esm/samples-dev/fleetsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/fleetsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetsListBySubscriptionSample.js +57 -0
- package/dist-esm/samples-dev/fleetsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/fleetsListCredentialsSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetsListCredentialsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetsListCredentialsSample.js +38 -0
- package/dist-esm/samples-dev/fleetsListCredentialsSample.js.map +1 -0
- package/dist-esm/samples-dev/fleetsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetsUpdateSample.js +41 -0
- package/dist-esm/samples-dev/fleetsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +58 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/updateRunsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/updateRunsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/updateRunsCreateOrUpdateSample.js +54 -0
- package/dist-esm/samples-dev/updateRunsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/updateRunsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/updateRunsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/updateRunsDeleteSample.js +39 -0
- package/dist-esm/samples-dev/updateRunsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/updateRunsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/updateRunsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/updateRunsGetSample.js +40 -0
- package/dist-esm/samples-dev/updateRunsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/updateRunsListByFleetSample.d.ts +2 -0
- package/dist-esm/samples-dev/updateRunsListByFleetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/updateRunsListByFleetSample.js +60 -0
- package/dist-esm/samples-dev/updateRunsListByFleetSample.js.map +1 -0
- package/dist-esm/samples-dev/updateRunsStartSample.d.ts +2 -0
- package/dist-esm/samples-dev/updateRunsStartSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/updateRunsStartSample.js +40 -0
- package/dist-esm/samples-dev/updateRunsStartSample.js.map +1 -0
- package/dist-esm/samples-dev/updateRunsStopSample.d.ts +2 -0
- package/dist-esm/samples-dev/updateRunsStopSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/updateRunsStopSample.js +40 -0
- package/dist-esm/samples-dev/updateRunsStopSample.js.map +1 -0
- package/dist-esm/src/containerServiceFleetClient.d.ts +23 -0
- package/dist-esm/src/containerServiceFleetClient.d.ts.map +1 -0
- package/dist-esm/src/containerServiceFleetClient.js +103 -0
- package/dist-esm/src/containerServiceFleetClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +11 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +21 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +851 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +102 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +42 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +1057 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +19 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +174 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/fleetMembers.d.ts +90 -0
- package/dist-esm/src/operations/fleetMembers.d.ts.map +1 -0
- package/dist-esm/src/operations/fleetMembers.js +413 -0
- package/dist-esm/src/operations/fleetMembers.js.map +1 -0
- package/dist-esm/src/operations/fleets.d.ts +106 -0
- package/dist-esm/src/operations/fleets.d.ts.map +1 -0
- package/dist-esm/src/operations/fleets.js +538 -0
- package/dist-esm/src/operations/fleets.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 +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +138 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/updateRuns.d.ts +113 -0
- package/dist-esm/src/operations/updateRuns.d.ts.map +1 -0
- package/dist-esm/src/operations/updateRuns.js +546 -0
- package/dist-esm/src/operations/updateRuns.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/fleetMembers.d.ts +65 -0
- package/dist-esm/src/operationsInterfaces/fleetMembers.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/fleetMembers.js +9 -0
- package/dist-esm/src/operationsInterfaces/fleetMembers.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/fleets.d.ts +70 -0
- package/dist-esm/src/operationsInterfaces/fleets.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/fleets.js +9 -0
- package/dist-esm/src/operationsInterfaces/fleets.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 +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/updateRuns.d.ts +88 -0
- package/dist-esm/src/operationsInterfaces/updateRuns.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/updateRuns.js +9 -0
- package/dist-esm/src/operationsInterfaces/updateRuns.js.map +1 -0
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/containerservicefleet_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/containerservicefleet_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/containerservicefleet_operations_test.spec.js +122 -0
- package/dist-esm/test/containerservicefleet_operations_test.spec.js.map +1 -0
- package/package.json +123 -0
- package/review/arm-containerservicefleet.api.md +623 -0
- package/rollup.config.js +122 -0
- package/src/containerServiceFleetClient.ts +156 -0
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +42 -0
- package/src/models/index.ts +965 -0
- package/src/models/mappers.ts +1124 -0
- package/src/models/parameters.ts +202 -0
- package/src/operations/fleetMembers.ts +562 -0
- package/src/operations/fleets.ts +684 -0
- package/src/operations/index.ts +12 -0
- package/src/operations/operations.ts +149 -0
- package/src/operations/updateRuns.ts +763 -0
- package/src/operationsInterfaces/fleetMembers.ts +127 -0
- package/src/operationsInterfaces/fleets.ts +134 -0
- package/src/operationsInterfaces/index.ts +12 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/updateRuns.ts +175 -0
- package/src/pagingHelper.ts +39 -0
- package/tsconfig.json +33 -0
- package/types/arm-containerservicefleet.d.ts +1209 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
3
|
+
import { Fleet, FleetsListBySubscriptionOptionalParams, FleetsListByResourceGroupOptionalParams, FleetsGetOptionalParams, FleetsGetResponse, FleetsCreateOrUpdateOptionalParams, FleetsCreateOrUpdateResponse, FleetPatch, FleetsUpdateOptionalParams, FleetsUpdateResponse, FleetsDeleteOptionalParams, FleetsListCredentialsOptionalParams, FleetsListCredentialsResponse } from "../models";
|
|
4
|
+
/** Interface representing a Fleets. */
|
|
5
|
+
export interface Fleets {
|
|
6
|
+
/**
|
|
7
|
+
* Lists fleets in the specified subscription.
|
|
8
|
+
* @param options The options parameters.
|
|
9
|
+
*/
|
|
10
|
+
listBySubscription(options?: FleetsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Fleet>;
|
|
11
|
+
/**
|
|
12
|
+
* Lists fleets in the specified subscription and resource group.
|
|
13
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
14
|
+
* @param options The options parameters.
|
|
15
|
+
*/
|
|
16
|
+
listByResourceGroup(resourceGroupName: string, options?: FleetsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Fleet>;
|
|
17
|
+
/**
|
|
18
|
+
* Gets a Fleet.
|
|
19
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
20
|
+
* @param fleetName The name of the Fleet resource.
|
|
21
|
+
* @param options The options parameters.
|
|
22
|
+
*/
|
|
23
|
+
get(resourceGroupName: string, fleetName: string, options?: FleetsGetOptionalParams): Promise<FleetsGetResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Creates or updates a Fleet.
|
|
26
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
27
|
+
* @param fleetName The name of the Fleet resource.
|
|
28
|
+
* @param resource Resource create parameters.
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
beginCreateOrUpdate(resourceGroupName: string, fleetName: string, resource: Fleet, options?: FleetsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<FleetsCreateOrUpdateResponse>, FleetsCreateOrUpdateResponse>>;
|
|
32
|
+
/**
|
|
33
|
+
* Creates or updates a Fleet.
|
|
34
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
35
|
+
* @param fleetName The name of the Fleet resource.
|
|
36
|
+
* @param resource Resource create parameters.
|
|
37
|
+
* @param options The options parameters.
|
|
38
|
+
*/
|
|
39
|
+
beginCreateOrUpdateAndWait(resourceGroupName: string, fleetName: string, resource: Fleet, options?: FleetsCreateOrUpdateOptionalParams): Promise<FleetsCreateOrUpdateResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Update a Fleet
|
|
42
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
43
|
+
* @param fleetName The name of the Fleet resource.
|
|
44
|
+
* @param properties The resource properties to be updated.
|
|
45
|
+
* @param options The options parameters.
|
|
46
|
+
*/
|
|
47
|
+
update(resourceGroupName: string, fleetName: string, properties: FleetPatch, options?: FleetsUpdateOptionalParams): Promise<FleetsUpdateResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* Delete a Fleet
|
|
50
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
51
|
+
* @param fleetName The name of the Fleet resource.
|
|
52
|
+
* @param options The options parameters.
|
|
53
|
+
*/
|
|
54
|
+
beginDelete(resourceGroupName: string, fleetName: string, options?: FleetsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
55
|
+
/**
|
|
56
|
+
* Delete a Fleet
|
|
57
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
58
|
+
* @param fleetName The name of the Fleet resource.
|
|
59
|
+
* @param options The options parameters.
|
|
60
|
+
*/
|
|
61
|
+
beginDeleteAndWait(resourceGroupName: string, fleetName: string, options?: FleetsDeleteOptionalParams): Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* Lists the user credentials of a Fleet.
|
|
64
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
65
|
+
* @param fleetName The name of the Fleet resource.
|
|
66
|
+
* @param options The options parameters.
|
|
67
|
+
*/
|
|
68
|
+
listCredentials(resourceGroupName: string, fleetName: string, options?: FleetsListCredentialsOptionalParams): Promise<FleetsListCredentialsResponse>;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=fleets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fleets.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/fleets.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EACL,KAAK,EACL,sCAAsC,EACtC,uCAAuC,EACvC,uBAAuB,EACvB,iBAAiB,EACjB,kCAAkC,EA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nC,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IACzD;;;;;OAKG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;OAKG;IACH,eAAe,CACb,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,6BAA6B,CAAC,CAAC;CAC3C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=fleets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fleets.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/fleets.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
|
|
@@ -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
|
+
export * from "./operations";
|
|
9
|
+
export * from "./fleets";
|
|
10
|
+
export * from "./fleetMembers";
|
|
11
|
+
export * from "./updateRuns";
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Operation, OperationsListOptionalParams } from "../models";
|
|
3
|
+
/** Interface representing a Operations. */
|
|
4
|
+
export interface Operations {
|
|
5
|
+
/**
|
|
6
|
+
* List the operations for the provider
|
|
7
|
+
* @param options The options parameters.
|
|
8
|
+
*/
|
|
9
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAC;AAGpE,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC1C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
3
|
+
import { UpdateRun, UpdateRunsListByFleetOptionalParams, UpdateRunsGetOptionalParams, UpdateRunsGetResponse, UpdateRunsCreateOrUpdateOptionalParams, UpdateRunsCreateOrUpdateResponse, UpdateRunsDeleteOptionalParams, UpdateRunsStartOptionalParams, UpdateRunsStartResponse, UpdateRunsStopOptionalParams, UpdateRunsStopResponse } from "../models";
|
|
4
|
+
/** Interface representing a UpdateRuns. */
|
|
5
|
+
export interface UpdateRuns {
|
|
6
|
+
/**
|
|
7
|
+
* List UpdateRun resources by Fleet
|
|
8
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9
|
+
* @param fleetName The name of the Fleet resource.
|
|
10
|
+
* @param options The options parameters.
|
|
11
|
+
*/
|
|
12
|
+
listByFleet(resourceGroupName: string, fleetName: string, options?: UpdateRunsListByFleetOptionalParams): PagedAsyncIterableIterator<UpdateRun>;
|
|
13
|
+
/**
|
|
14
|
+
* Get a UpdateRun
|
|
15
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
16
|
+
* @param fleetName The name of the Fleet resource.
|
|
17
|
+
* @param updateRunName The name of the UpdateRun resource.
|
|
18
|
+
* @param options The options parameters.
|
|
19
|
+
*/
|
|
20
|
+
get(resourceGroupName: string, fleetName: string, updateRunName: string, options?: UpdateRunsGetOptionalParams): Promise<UpdateRunsGetResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Create a UpdateRun
|
|
23
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
24
|
+
* @param fleetName The name of the Fleet resource.
|
|
25
|
+
* @param updateRunName The name of the UpdateRun resource.
|
|
26
|
+
* @param resource Resource create parameters.
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
beginCreateOrUpdate(resourceGroupName: string, fleetName: string, updateRunName: string, resource: UpdateRun, options?: UpdateRunsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<UpdateRunsCreateOrUpdateResponse>, UpdateRunsCreateOrUpdateResponse>>;
|
|
30
|
+
/**
|
|
31
|
+
* Create a UpdateRun
|
|
32
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
33
|
+
* @param fleetName The name of the Fleet resource.
|
|
34
|
+
* @param updateRunName The name of the UpdateRun resource.
|
|
35
|
+
* @param resource Resource create parameters.
|
|
36
|
+
* @param options The options parameters.
|
|
37
|
+
*/
|
|
38
|
+
beginCreateOrUpdateAndWait(resourceGroupName: string, fleetName: string, updateRunName: string, resource: UpdateRun, options?: UpdateRunsCreateOrUpdateOptionalParams): Promise<UpdateRunsCreateOrUpdateResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* Delete a UpdateRun
|
|
41
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
42
|
+
* @param fleetName The name of the Fleet resource.
|
|
43
|
+
* @param updateRunName The name of the UpdateRun resource.
|
|
44
|
+
* @param options The options parameters.
|
|
45
|
+
*/
|
|
46
|
+
beginDelete(resourceGroupName: string, fleetName: string, updateRunName: string, options?: UpdateRunsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
47
|
+
/**
|
|
48
|
+
* Delete a UpdateRun
|
|
49
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
50
|
+
* @param fleetName The name of the Fleet resource.
|
|
51
|
+
* @param updateRunName The name of the UpdateRun resource.
|
|
52
|
+
* @param options The options parameters.
|
|
53
|
+
*/
|
|
54
|
+
beginDeleteAndWait(resourceGroupName: string, fleetName: string, updateRunName: string, options?: UpdateRunsDeleteOptionalParams): Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* Starts an UpdateRun.
|
|
57
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
58
|
+
* @param fleetName The name of the Fleet resource.
|
|
59
|
+
* @param updateRunName The name of the UpdateRun resource.
|
|
60
|
+
* @param options The options parameters.
|
|
61
|
+
*/
|
|
62
|
+
beginStart(resourceGroupName: string, fleetName: string, updateRunName: string, options?: UpdateRunsStartOptionalParams): Promise<SimplePollerLike<OperationState<UpdateRunsStartResponse>, UpdateRunsStartResponse>>;
|
|
63
|
+
/**
|
|
64
|
+
* Starts an UpdateRun.
|
|
65
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
66
|
+
* @param fleetName The name of the Fleet resource.
|
|
67
|
+
* @param updateRunName The name of the UpdateRun resource.
|
|
68
|
+
* @param options The options parameters.
|
|
69
|
+
*/
|
|
70
|
+
beginStartAndWait(resourceGroupName: string, fleetName: string, updateRunName: string, options?: UpdateRunsStartOptionalParams): Promise<UpdateRunsStartResponse>;
|
|
71
|
+
/**
|
|
72
|
+
* Stops an UpdateRun.
|
|
73
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
74
|
+
* @param fleetName The name of the Fleet resource.
|
|
75
|
+
* @param updateRunName The name of the UpdateRun resource.
|
|
76
|
+
* @param options The options parameters.
|
|
77
|
+
*/
|
|
78
|
+
beginStop(resourceGroupName: string, fleetName: string, updateRunName: string, options?: UpdateRunsStopOptionalParams): Promise<SimplePollerLike<OperationState<UpdateRunsStopResponse>, UpdateRunsStopResponse>>;
|
|
79
|
+
/**
|
|
80
|
+
* Stops an UpdateRun.
|
|
81
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
82
|
+
* @param fleetName The name of the Fleet resource.
|
|
83
|
+
* @param updateRunName The name of the UpdateRun resource.
|
|
84
|
+
* @param options The options parameters.
|
|
85
|
+
*/
|
|
86
|
+
beginStopAndWait(resourceGroupName: string, fleetName: string, updateRunName: string, options?: UpdateRunsStopOptionalParams): Promise<UpdateRunsStopResponse>;
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=updateRuns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateRuns.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/updateRuns.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EACL,SAAS,EACT,mCAAmC,EACnC,2BAA2B,EAC3B,qBAAqB,EACrB,sCAAsC,EACtC,gCAAgC,EAChC,8BAA8B,EAC9B,6BAA6B,EAC7B,uBAAuB,EACvB,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,WAAW,CAAC;AAGnB,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;;;OAKG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,mCAAmC,GAC5C,0BAA0B,CAAC,SAAS,CAAC,CAAC;IACzC;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAClC;;;;;;;OAOG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,SAAS,EACnB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,gCA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ACtC,sBAAsB,CACvB,CACF,CAAC;IACF;;;;;;OAMG;IACH,gBAAgB,CACd,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACpC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=updateRuns.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateRuns.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/updateRuns.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface PageInfo {
|
|
2
|
+
continuationToken?: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
6
|
+
* returns a continuation token that can be used to begin paging from
|
|
7
|
+
* that point later.
|
|
8
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
9
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
10
|
+
*/
|
|
11
|
+
export declare function getContinuationToken(page: unknown): string | undefined;
|
|
12
|
+
export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
|
|
13
|
+
//# sourceMappingURL=pagingHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
const pageMap = new WeakMap();
|
|
9
|
+
/**
|
|
10
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
11
|
+
* returns a continuation token that can be used to begin paging from
|
|
12
|
+
* that point later.
|
|
13
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
14
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
15
|
+
*/
|
|
16
|
+
export function getContinuationToken(page) {
|
|
17
|
+
var _a;
|
|
18
|
+
if (typeof page !== "object" || page === null) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
22
|
+
}
|
|
23
|
+
export function setContinuationToken(page, continuationToken) {
|
|
24
|
+
var _a;
|
|
25
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
29
|
+
pageInfo.continuationToken = continuationToken;
|
|
30
|
+
pageMap.set(page, pageInfo);
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=pagingHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE;QAC7C,OAAO,SAAS,CAAC;KAClB;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE;QACnE,OAAO;KACR;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"containerservicefleet_operations_test.spec.d.ts","sourceRoot":"","sources":["../../test/containerservicefleet_operations_test.spec.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,kBAAkB;;CAE9B,CAAC"}
|
|
@@ -0,0 +1,122 @@
|
|
|
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
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
import { env, Recorder, isPlaybackMode, } from "@azure-tools/test-recorder";
|
|
10
|
+
import { createTestCredential } from "@azure-tools/test-credential";
|
|
11
|
+
import { assert } from "chai";
|
|
12
|
+
import { ContainerServiceFleetClient } from "../src/containerServiceFleetClient";
|
|
13
|
+
const replaceableVariables = {
|
|
14
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
|
15
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
16
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
17
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
18
|
+
};
|
|
19
|
+
const recorderOptions = {
|
|
20
|
+
envSetupForPlayback: replaceableVariables
|
|
21
|
+
};
|
|
22
|
+
export const testPollingOptions = {
|
|
23
|
+
updateIntervalInMs: isPlaybackMode() ? 0 : undefined,
|
|
24
|
+
};
|
|
25
|
+
describe("containerservicefleet test", () => {
|
|
26
|
+
let recorder;
|
|
27
|
+
let subscriptionId;
|
|
28
|
+
let client;
|
|
29
|
+
let location;
|
|
30
|
+
let resourceGroup;
|
|
31
|
+
let resourceName;
|
|
32
|
+
beforeEach(function () {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
recorder = new Recorder(this.currentTest);
|
|
35
|
+
yield recorder.start(recorderOptions);
|
|
36
|
+
subscriptionId = env.SUBSCRIPTION_ID || '';
|
|
37
|
+
// This is an example of how the environment variables are used
|
|
38
|
+
const credential = createTestCredential();
|
|
39
|
+
client = new ContainerServiceFleetClient(credential, subscriptionId, recorder.configureClientOptions({}));
|
|
40
|
+
location = "eastus";
|
|
41
|
+
resourceGroup = "myjstest";
|
|
42
|
+
resourceName = "testresource-12a";
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
afterEach(function () {
|
|
46
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
yield recorder.stop();
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
it("fleets create test", function () {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
const res = yield client.fleets.beginCreateOrUpdateAndWait(resourceGroup, resourceName, {
|
|
53
|
+
hubProfile: { dnsPrefix: "dnsprefix1" },
|
|
54
|
+
location,
|
|
55
|
+
tags: { archv2: "", tier: "production" }
|
|
56
|
+
}, testPollingOptions);
|
|
57
|
+
assert.equal(res.name, resourceName);
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
it("fleets get test", function () {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
const res = yield client.fleets.get(resourceGroup, resourceName);
|
|
63
|
+
assert.equal(res.name, resourceName);
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
it("fleets list test", function () {
|
|
67
|
+
var _a, e_1, _b, _c;
|
|
68
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
+
const resArray = new Array();
|
|
70
|
+
try {
|
|
71
|
+
for (var _d = true, _e = __asyncValues(client.fleets.listByResourceGroup(resourceGroup)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
72
|
+
_c = _f.value;
|
|
73
|
+
_d = false;
|
|
74
|
+
try {
|
|
75
|
+
let item = _c;
|
|
76
|
+
resArray.push(item);
|
|
77
|
+
}
|
|
78
|
+
finally {
|
|
79
|
+
_d = true;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
84
|
+
finally {
|
|
85
|
+
try {
|
|
86
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
87
|
+
}
|
|
88
|
+
finally { if (e_1) throw e_1.error; }
|
|
89
|
+
}
|
|
90
|
+
assert.equal(resArray.length, 1);
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
it("fleets delete test", function () {
|
|
94
|
+
var _a, e_2, _b, _c;
|
|
95
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
+
const resArray = new Array();
|
|
97
|
+
const res = yield client.fleets.beginDeleteAndWait(resourceGroup, resourceName);
|
|
98
|
+
try {
|
|
99
|
+
for (var _d = true, _e = __asyncValues(client.fleets.listByResourceGroup(resourceGroup)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
100
|
+
_c = _f.value;
|
|
101
|
+
_d = false;
|
|
102
|
+
try {
|
|
103
|
+
let item = _c;
|
|
104
|
+
resArray.push(item);
|
|
105
|
+
}
|
|
106
|
+
finally {
|
|
107
|
+
_d = true;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
112
|
+
finally {
|
|
113
|
+
try {
|
|
114
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
115
|
+
}
|
|
116
|
+
finally { if (e_2) throw e_2.error; }
|
|
117
|
+
}
|
|
118
|
+
assert.equal(resArray.length, 0);
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
//# sourceMappingURL=containerservicefleet_operations_test.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"containerservicefleet_operations_test.spec.js","sourceRoot":"","sources":["../../test/containerservicefleet_operations_test.spec.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,GAAG,EACH,QAAQ,EAGR,cAAc,GACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AAEjF,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAA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CAAC,CAAC;AACL,CAAC,CAAC,CAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@azure/arm-containerservicefleet",
|
|
3
|
+
"sdk-type": "mgmt",
|
|
4
|
+
"author": "Microsoft Corporation",
|
|
5
|
+
"description": "A generated SDK for ContainerServiceFleetClient.",
|
|
6
|
+
"version": "1.0.0-alpha.20230620.2",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=14.0.0"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@azure/core-lro": "^2.5.3",
|
|
12
|
+
"@azure/abort-controller": "^1.0.0",
|
|
13
|
+
"@azure/core-paging": "^1.2.0",
|
|
14
|
+
"@azure/core-client": "^1.7.0",
|
|
15
|
+
"@azure/core-auth": "^1.3.0",
|
|
16
|
+
"@azure/core-rest-pipeline": "^1.8.0",
|
|
17
|
+
"tslib": "^2.2.0"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"node",
|
|
21
|
+
"azure",
|
|
22
|
+
"typescript",
|
|
23
|
+
"browser",
|
|
24
|
+
"isomorphic"
|
|
25
|
+
],
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"main": "./dist/index.js",
|
|
28
|
+
"module": "./dist-esm/src/index.js",
|
|
29
|
+
"types": "./types/arm-containerservicefleet.d.ts",
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@microsoft/api-extractor": "^7.31.1",
|
|
32
|
+
"@rollup/plugin-commonjs": "^24.0.0",
|
|
33
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
34
|
+
"@rollup/plugin-multi-entry": "^6.0.0",
|
|
35
|
+
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
36
|
+
"mkdirp": "^2.1.2",
|
|
37
|
+
"rollup": "^2.66.1",
|
|
38
|
+
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
39
|
+
"typescript": "~5.0.0",
|
|
40
|
+
"uglify-js": "^3.4.9",
|
|
41
|
+
"rimraf": "^3.0.0",
|
|
42
|
+
"dotenv": "^16.0.0",
|
|
43
|
+
"@azure/identity": "^2.0.1",
|
|
44
|
+
"@azure-tools/test-recorder": "^3.0.0",
|
|
45
|
+
"@azure-tools/test-credential": "^1.0.0",
|
|
46
|
+
"mocha": "^7.1.1",
|
|
47
|
+
"@types/chai": "^4.2.8",
|
|
48
|
+
"chai": "^4.2.0",
|
|
49
|
+
"cross-env": "^7.0.2",
|
|
50
|
+
"@types/node": "^14.0.0",
|
|
51
|
+
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb"
|
|
52
|
+
},
|
|
53
|
+
"repository": {
|
|
54
|
+
"type": "git",
|
|
55
|
+
"url": "https://github.com/Azure/azure-sdk-for-js.git"
|
|
56
|
+
},
|
|
57
|
+
"bugs": {
|
|
58
|
+
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
|
59
|
+
},
|
|
60
|
+
"files": [
|
|
61
|
+
"dist/**/*.js",
|
|
62
|
+
"dist/**/*.js.map",
|
|
63
|
+
"dist/**/*.d.ts",
|
|
64
|
+
"dist/**/*.d.ts.map",
|
|
65
|
+
"dist-esm/**/*.js",
|
|
66
|
+
"dist-esm/**/*.js.map",
|
|
67
|
+
"dist-esm/**/*.d.ts",
|
|
68
|
+
"dist-esm/**/*.d.ts.map",
|
|
69
|
+
"src/**/*.ts",
|
|
70
|
+
"README.md",
|
|
71
|
+
"LICENSE",
|
|
72
|
+
"rollup.config.js",
|
|
73
|
+
"tsconfig.json",
|
|
74
|
+
"review/*",
|
|
75
|
+
"CHANGELOG.md",
|
|
76
|
+
"types/*"
|
|
77
|
+
],
|
|
78
|
+
"scripts": {
|
|
79
|
+
"build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
|
|
80
|
+
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
|
|
81
|
+
"prepack": "npm run build",
|
|
82
|
+
"pack": "npm pack 2>&1",
|
|
83
|
+
"extract-api": "api-extractor run --local",
|
|
84
|
+
"lint": "echo skipped",
|
|
85
|
+
"audit": "echo skipped",
|
|
86
|
+
"clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
|
87
|
+
"build:node": "echo skipped",
|
|
88
|
+
"build:browser": "echo skipped",
|
|
89
|
+
"build:test": "echo skipped",
|
|
90
|
+
"build:samples": "echo skipped.",
|
|
91
|
+
"check-format": "echo skipped",
|
|
92
|
+
"execute:samples": "echo skipped",
|
|
93
|
+
"format": "echo skipped",
|
|
94
|
+
"test": "npm run integration-test",
|
|
95
|
+
"test:node": "echo skipped",
|
|
96
|
+
"test:browser": "echo skipped",
|
|
97
|
+
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
|
98
|
+
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
|
|
99
|
+
"unit-test:browser": "echo skipped",
|
|
100
|
+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
101
|
+
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
|
|
102
|
+
"integration-test:browser": "echo skipped"
|
|
103
|
+
},
|
|
104
|
+
"sideEffects": false,
|
|
105
|
+
"//metadata": {
|
|
106
|
+
"constantPaths": [
|
|
107
|
+
{
|
|
108
|
+
"path": "src/containerServiceFleetClient.ts",
|
|
109
|
+
"prefix": "packageDetails"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"autoPublish": true,
|
|
114
|
+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerservice/arm-containerservicefleet",
|
|
115
|
+
"//sampleConfiguration": {
|
|
116
|
+
"productName": "",
|
|
117
|
+
"productSlugs": [
|
|
118
|
+
"azure"
|
|
119
|
+
],
|
|
120
|
+
"disableDocsMs": true,
|
|
121
|
+
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-containerservicefleet?view=azure-node-preview"
|
|
122
|
+
}
|
|
123
|
+
}
|