@azure/arm-kubernetesconfiguration-fluxconfigurations 1.0.0-beta.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 +7 -0
- package/LICENSE +21 -0
- package/README.md +115 -0
- package/dist/browser/fluxConfigurationClient.d.ts +21 -0
- package/dist/browser/fluxConfigurationClient.d.ts.map +1 -0
- package/dist/browser/fluxConfigurationClient.js +97 -0
- package/dist/browser/fluxConfigurationClient.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +13 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/lroImpl.d.ts +11 -0
- package/dist/browser/lroImpl.d.ts.map +1 -0
- package/dist/browser/lroImpl.js +21 -0
- package/dist/browser/lroImpl.js.map +1 -0
- package/dist/browser/models/index.d.ts +875 -0
- package/dist/browser/models/index.d.ts.map +1 -0
- package/dist/browser/models/index.js +98 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.d.ts +45 -0
- package/dist/browser/models/mappers.d.ts.map +1 -0
- package/dist/browser/models/mappers.js +1914 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/dist/browser/models/parameters.d.ts +17 -0
- package/dist/browser/models/parameters.d.ts.map +1 -0
- package/dist/browser/models/parameters.js +164 -0
- package/dist/browser/models/parameters.js.map +1 -0
- package/dist/browser/operations/fluxConfigOperationStatus.d.ts +26 -0
- package/dist/browser/operations/fluxConfigOperationStatus.d.ts.map +1 -0
- package/dist/browser/operations/fluxConfigOperationStatus.js +71 -0
- package/dist/browser/operations/fluxConfigOperationStatus.js.map +1 -0
- package/dist/browser/operations/fluxConfigurations.d.ts +141 -0
- package/dist/browser/operations/fluxConfigurations.d.ts.map +1 -0
- package/dist/browser/operations/fluxConfigurations.js +536 -0
- package/dist/browser/operations/fluxConfigurations.js.map +1 -0
- package/dist/browser/operations/index.d.ts +3 -0
- package/dist/browser/operations/index.d.ts.map +1 -0
- package/dist/browser/operations/index.js +10 -0
- package/dist/browser/operations/index.js.map +1 -0
- package/dist/browser/operationsInterfaces/fluxConfigOperationStatus.d.ts +18 -0
- package/dist/browser/operationsInterfaces/fluxConfigOperationStatus.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/fluxConfigOperationStatus.js +9 -0
- package/dist/browser/operationsInterfaces/fluxConfigOperationStatus.js.map +1 -0
- package/dist/browser/operationsInterfaces/fluxConfigurations.d.ts +108 -0
- package/dist/browser/operationsInterfaces/fluxConfigurations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/fluxConfigurations.js +9 -0
- package/dist/browser/operationsInterfaces/fluxConfigurations.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +3 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/index.js +10 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.d.ts +13 -0
- package/dist/browser/pagingHelper.d.ts.map +1 -0
- package/dist/browser/pagingHelper.js +32 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/fluxConfigurationClient.d.ts +21 -0
- package/dist/commonjs/fluxConfigurationClient.d.ts.map +1 -0
- package/dist/commonjs/fluxConfigurationClient.js +102 -0
- package/dist/commonjs/fluxConfigurationClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/lroImpl.d.ts +11 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +24 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +875 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +101 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +45 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +1917 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +17 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +167 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/fluxConfigOperationStatus.d.ts +26 -0
- package/dist/commonjs/operations/fluxConfigOperationStatus.d.ts.map +1 -0
- package/dist/commonjs/operations/fluxConfigOperationStatus.js +76 -0
- package/dist/commonjs/operations/fluxConfigOperationStatus.js.map +1 -0
- package/dist/commonjs/operations/fluxConfigurations.d.ts +141 -0
- package/dist/commonjs/operations/fluxConfigurations.d.ts.map +1 -0
- package/dist/commonjs/operations/fluxConfigurations.js +540 -0
- package/dist/commonjs/operations/fluxConfigurations.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +3 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +13 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/fluxConfigOperationStatus.d.ts +18 -0
- package/dist/commonjs/operationsInterfaces/fluxConfigOperationStatus.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/fluxConfigOperationStatus.js +10 -0
- package/dist/commonjs/operationsInterfaces/fluxConfigOperationStatus.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/fluxConfigurations.d.ts +108 -0
- package/dist/commonjs/operationsInterfaces/fluxConfigurations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/fluxConfigurations.js +10 -0
- package/dist/commonjs/operationsInterfaces/fluxConfigurations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +13 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +36 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/fluxConfigurationClient.d.ts +21 -0
- package/dist/esm/fluxConfigurationClient.d.ts.map +1 -0
- package/dist/esm/fluxConfigurationClient.js +97 -0
- package/dist/esm/fluxConfigurationClient.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +13 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lroImpl.d.ts +11 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +21 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +875 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +98 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +45 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +1914 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +17 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +164 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/fluxConfigOperationStatus.d.ts +26 -0
- package/dist/esm/operations/fluxConfigOperationStatus.d.ts.map +1 -0
- package/dist/esm/operations/fluxConfigOperationStatus.js +71 -0
- package/dist/esm/operations/fluxConfigOperationStatus.js.map +1 -0
- package/dist/esm/operations/fluxConfigurations.d.ts +141 -0
- package/dist/esm/operations/fluxConfigurations.d.ts.map +1 -0
- package/dist/esm/operations/fluxConfigurations.js +536 -0
- package/dist/esm/operations/fluxConfigurations.js.map +1 -0
- package/dist/esm/operations/index.d.ts +3 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +10 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/fluxConfigOperationStatus.d.ts +18 -0
- package/dist/esm/operationsInterfaces/fluxConfigOperationStatus.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/fluxConfigOperationStatus.js +9 -0
- package/dist/esm/operationsInterfaces/fluxConfigOperationStatus.js.map +1 -0
- package/dist/esm/operationsInterfaces/fluxConfigurations.d.ts +108 -0
- package/dist/esm/operationsInterfaces/fluxConfigurations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/fluxConfigurations.js +9 -0
- package/dist/esm/operationsInterfaces/fluxConfigurations.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +3 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +10 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +32 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/fluxConfigurationClient.d.ts +21 -0
- package/dist/react-native/fluxConfigurationClient.d.ts.map +1 -0
- package/dist/react-native/fluxConfigurationClient.js +97 -0
- package/dist/react-native/fluxConfigurationClient.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/lroImpl.d.ts +11 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +21 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +875 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +98 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +45 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +1914 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +17 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +164 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/fluxConfigOperationStatus.d.ts +26 -0
- package/dist/react-native/operations/fluxConfigOperationStatus.d.ts.map +1 -0
- package/dist/react-native/operations/fluxConfigOperationStatus.js +71 -0
- package/dist/react-native/operations/fluxConfigOperationStatus.js.map +1 -0
- package/dist/react-native/operations/fluxConfigurations.d.ts +141 -0
- package/dist/react-native/operations/fluxConfigurations.d.ts.map +1 -0
- package/dist/react-native/operations/fluxConfigurations.js +536 -0
- package/dist/react-native/operations/fluxConfigurations.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +3 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +10 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/fluxConfigOperationStatus.d.ts +18 -0
- package/dist/react-native/operationsInterfaces/fluxConfigOperationStatus.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/fluxConfigOperationStatus.js +9 -0
- package/dist/react-native/operationsInterfaces/fluxConfigOperationStatus.js.map +1 -0
- package/dist/react-native/operationsInterfaces/fluxConfigurations.d.ts +108 -0
- package/dist/react-native/operationsInterfaces/fluxConfigurations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/fluxConfigurations.js +9 -0
- package/dist/react-native/operationsInterfaces/fluxConfigurations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +10 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +32 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +133 -0
- package/review/arm-kubernetesconfiguration-fluxconfigurations.api.md +602 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FluxConfigOperationStatusGetOptionalParams, FluxConfigOperationStatusGetResponse } from "../models/index.js";
|
|
2
|
+
/** Interface representing a FluxConfigOperationStatus. */
|
|
3
|
+
export interface FluxConfigOperationStatus {
|
|
4
|
+
/**
|
|
5
|
+
* Get Async Operation status
|
|
6
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
7
|
+
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
|
8
|
+
* Microsoft.HybridContainerService.
|
|
9
|
+
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
|
10
|
+
* connectedClusters, provisionedClusters, appliances.
|
|
11
|
+
* @param clusterName The name of the kubernetes cluster.
|
|
12
|
+
* @param fluxConfigurationName Name of the Flux Configuration.
|
|
13
|
+
* @param operationId operation Id
|
|
14
|
+
* @param options The options parameters.
|
|
15
|
+
*/
|
|
16
|
+
get(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, fluxConfigurationName: string, operationId: string, options?: FluxConfigOperationStatusGetOptionalParams): Promise<FluxConfigOperationStatusGetResponse>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=fluxConfigOperationStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fluxConfigOperationStatus.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/fluxConfigOperationStatus.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,0CAA0C,EAC1C,oCAAoC,EACrC,MAAM,oBAAoB,CAAC;AAE5B,0DAA0D;AAC1D,MAAM,WAAW,yBAAyB;IACxC;;;;;;;;;;;OAWG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,mBAAmB,EAAE,MAAM,EAC3B,WAAW,EAAE,MAAM,EACnB,qBAAqB,EAAE,MAAM,EAC7B,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,0CAA0C,GACnD,OAAO,CAAC,oCAAoC,CAAC,CAAC;CAClD"}
|
|
@@ -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=fluxConfigOperationStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fluxConfigOperationStatus.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/fluxConfigOperationStatus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n FluxConfigOperationStatusGetOptionalParams,\n FluxConfigOperationStatusGetResponse,\n} from \"../models/index.js\";\n\n/** Interface representing a FluxConfigOperationStatus. */\nexport interface FluxConfigOperationStatus {\n /**\n * Get Async Operation status\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param fluxConfigurationName Name of the Flux Configuration.\n * @param operationId operation Id\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n fluxConfigurationName: string,\n operationId: string,\n options?: FluxConfigOperationStatusGetOptionalParams,\n ): Promise<FluxConfigOperationStatusGetResponse>;\n}\n"]}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
3
|
+
import { FluxConfiguration, FluxConfigurationsListOptionalParams, FluxConfigurationsGetOptionalParams, FluxConfigurationsGetResponse, FluxConfigurationsCreateOrUpdateOptionalParams, FluxConfigurationsCreateOrUpdateResponse, FluxConfigurationPatch, FluxConfigurationsUpdateOptionalParams, FluxConfigurationsUpdateResponse, FluxConfigurationsDeleteOptionalParams } from "../models/index.js";
|
|
4
|
+
/** Interface representing a FluxConfigurations. */
|
|
5
|
+
export interface FluxConfigurations {
|
|
6
|
+
/**
|
|
7
|
+
* List all Flux Configurations.
|
|
8
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9
|
+
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
|
10
|
+
* Microsoft.HybridContainerService.
|
|
11
|
+
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
|
12
|
+
* connectedClusters, provisionedClusters, appliances.
|
|
13
|
+
* @param clusterName The name of the kubernetes cluster.
|
|
14
|
+
* @param options The options parameters.
|
|
15
|
+
*/
|
|
16
|
+
list(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, options?: FluxConfigurationsListOptionalParams): PagedAsyncIterableIterator<FluxConfiguration>;
|
|
17
|
+
/**
|
|
18
|
+
* Gets details of the Flux Configuration.
|
|
19
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
20
|
+
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
|
21
|
+
* Microsoft.HybridContainerService.
|
|
22
|
+
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
|
23
|
+
* connectedClusters, provisionedClusters, appliances.
|
|
24
|
+
* @param clusterName The name of the kubernetes cluster.
|
|
25
|
+
* @param fluxConfigurationName Name of the Flux Configuration.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
get(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, fluxConfigurationName: string, options?: FluxConfigurationsGetOptionalParams): Promise<FluxConfigurationsGetResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Create a new Kubernetes Flux Configuration.
|
|
31
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
32
|
+
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
|
33
|
+
* Microsoft.HybridContainerService.
|
|
34
|
+
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
|
35
|
+
* connectedClusters, provisionedClusters, appliances.
|
|
36
|
+
* @param clusterName The name of the kubernetes cluster.
|
|
37
|
+
* @param fluxConfigurationName Name of the Flux Configuration.
|
|
38
|
+
* @param fluxConfiguration Properties necessary to Create a FluxConfiguration.
|
|
39
|
+
* @param options The options parameters.
|
|
40
|
+
*/
|
|
41
|
+
beginCreateOrUpdate(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, fluxConfigurationName: string, fluxConfiguration: FluxConfiguration, options?: FluxConfigurationsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<FluxConfigurationsCreateOrUpdateResponse>, FluxConfigurationsCreateOrUpdateResponse>>;
|
|
42
|
+
/**
|
|
43
|
+
* Create a new Kubernetes Flux Configuration.
|
|
44
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
45
|
+
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
|
46
|
+
* Microsoft.HybridContainerService.
|
|
47
|
+
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
|
48
|
+
* connectedClusters, provisionedClusters, appliances.
|
|
49
|
+
* @param clusterName The name of the kubernetes cluster.
|
|
50
|
+
* @param fluxConfigurationName Name of the Flux Configuration.
|
|
51
|
+
* @param fluxConfiguration Properties necessary to Create a FluxConfiguration.
|
|
52
|
+
* @param options The options parameters.
|
|
53
|
+
*/
|
|
54
|
+
beginCreateOrUpdateAndWait(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, fluxConfigurationName: string, fluxConfiguration: FluxConfiguration, options?: FluxConfigurationsCreateOrUpdateOptionalParams): Promise<FluxConfigurationsCreateOrUpdateResponse>;
|
|
55
|
+
/**
|
|
56
|
+
* Update an existing Kubernetes Flux Configuration.
|
|
57
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
58
|
+
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
|
59
|
+
* Microsoft.HybridContainerService.
|
|
60
|
+
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
|
61
|
+
* connectedClusters, provisionedClusters, appliances.
|
|
62
|
+
* @param clusterName The name of the kubernetes cluster.
|
|
63
|
+
* @param fluxConfigurationName Name of the Flux Configuration.
|
|
64
|
+
* @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.
|
|
65
|
+
* @param options The options parameters.
|
|
66
|
+
*/
|
|
67
|
+
beginUpdate(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, fluxConfigurationName: string, fluxConfigurationPatch: FluxConfigurationPatch, options?: FluxConfigurationsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<FluxConfigurationsUpdateResponse>, FluxConfigurationsUpdateResponse>>;
|
|
68
|
+
/**
|
|
69
|
+
* Update an existing Kubernetes Flux Configuration.
|
|
70
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
71
|
+
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
|
72
|
+
* Microsoft.HybridContainerService.
|
|
73
|
+
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
|
74
|
+
* connectedClusters, provisionedClusters, appliances.
|
|
75
|
+
* @param clusterName The name of the kubernetes cluster.
|
|
76
|
+
* @param fluxConfigurationName Name of the Flux Configuration.
|
|
77
|
+
* @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.
|
|
78
|
+
* @param options The options parameters.
|
|
79
|
+
*/
|
|
80
|
+
beginUpdateAndWait(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, fluxConfigurationName: string, fluxConfigurationPatch: FluxConfigurationPatch, options?: FluxConfigurationsUpdateOptionalParams): Promise<FluxConfigurationsUpdateResponse>;
|
|
81
|
+
/**
|
|
82
|
+
* This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from
|
|
83
|
+
* the source repo.
|
|
84
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
85
|
+
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
|
86
|
+
* Microsoft.HybridContainerService.
|
|
87
|
+
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
|
88
|
+
* connectedClusters, provisionedClusters, appliances.
|
|
89
|
+
* @param clusterName The name of the kubernetes cluster.
|
|
90
|
+
* @param fluxConfigurationName Name of the Flux Configuration.
|
|
91
|
+
* @param options The options parameters.
|
|
92
|
+
*/
|
|
93
|
+
beginDelete(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, fluxConfigurationName: string, options?: FluxConfigurationsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
94
|
+
/**
|
|
95
|
+
* This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from
|
|
96
|
+
* the source repo.
|
|
97
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
98
|
+
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
|
99
|
+
* Microsoft.HybridContainerService.
|
|
100
|
+
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
|
101
|
+
* connectedClusters, provisionedClusters, appliances.
|
|
102
|
+
* @param clusterName The name of the kubernetes cluster.
|
|
103
|
+
* @param fluxConfigurationName Name of the Flux Configuration.
|
|
104
|
+
* @param options The options parameters.
|
|
105
|
+
*/
|
|
106
|
+
beginDeleteAndWait(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, fluxConfigurationName: string, options?: FluxConfigurationsDeleteOptionalParams): Promise<void>;
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=fluxConfigurations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fluxConfigurations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/fluxConfigurations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EACL,iBAAiB,EACjB,oCAAoC,EACpC,mCAAmC,EACnC,6BAA6B,EAC7B,8CAA8C,EAC9C,wCAAwC,EACxC,sBAAsB,EACtB,sCAAsC,EACtC,gCAAgC,EAChC,sCAAsC,EACvC,MAAM,oBAAoB,CAAC;AAG5B,mDAAmD;AACnD,MAAM,WAAW,kBAAkB;IACjC;;;;;;;;;OASG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,mBAAmB,EAAE,MAAM,EAC3B,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,oCAAoC,GAC7C,0BAA0B,CAAC,iBAAiB,CAAC,CAAC;IACjD;;;;;;;;;;OAUG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,mBAAmB,EAAE,MAAM,EAC3B,WAAW,EAAE,MAAM,EACnB,qBAAqB,EAAE,MAAM,EAC7B,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAC1C;;;;;;;;;;;OAWG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,mBAAmB,EAAE,MAAM,EAC3B,WAAW,EAAE,MAAM,EACnB,qBAAqB,EAAE,MAAM,EAC7B,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,wCAAwC,CAAC,EACxD,wCAAwC,CACzC,CACF,CAAC;IACF;;;;;;;;;;;OAWG;IACH,0BAA0B,CACxB,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,mBAAmB,EAAE,MAAM,EAC3B,WAAW,EAAE,MAAM,EACnB,qBAAqB,EAAE,MAAM,EAC7B,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,wCAAwC,CAAC,CAAC;IACrD;;;;;;;;;;;OAWG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,mBAAmB,EAAE,MAAM,EAC3B,WAAW,EAAE,MAAM,EACnB,qBAAqB,EAAE,MAAM,EAC7B,sBAAsB,EAAE,sBAAsB,EAC9C,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,gCAAgC,CAAC,EAChD,gCAAgC,CACjC,CACF,CAAC;IACF;;;;;;;;;;;OAWG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,mBAAmB,EAAE,MAAM,EAC3B,WAAW,EAAE,MAAM,EACnB,qBAAqB,EAAE,MAAM,EAC7B,sBAAsB,EAAE,sBAAsB,EAC9C,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,gCAAgC,CAAC,CAAC;IAC7C;;;;;;;;;;;OAWG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,mBAAmB,EAAE,MAAM,EAC3B,WAAW,EAAE,MAAM,EACnB,qBAAqB,EAAE,MAAM,EAC7B,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IACzD;;;;;;;;;;;OAWG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,mBAAmB,EAAE,MAAM,EAC3B,WAAW,EAAE,MAAM,EACnB,qBAAqB,EAAE,MAAM,EAC7B,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
|
@@ -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=fluxConfigurations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fluxConfigurations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/fluxConfigurations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n FluxConfiguration,\n FluxConfigurationsListOptionalParams,\n FluxConfigurationsGetOptionalParams,\n FluxConfigurationsGetResponse,\n FluxConfigurationsCreateOrUpdateOptionalParams,\n FluxConfigurationsCreateOrUpdateResponse,\n FluxConfigurationPatch,\n FluxConfigurationsUpdateOptionalParams,\n FluxConfigurationsUpdateResponse,\n FluxConfigurationsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a FluxConfigurations. */\nexport interface FluxConfigurations {\n /**\n * List all Flux Configurations.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n options?: FluxConfigurationsListOptionalParams,\n ): PagedAsyncIterableIterator<FluxConfiguration>;\n /**\n * Gets details of the Flux Configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param fluxConfigurationName Name of the Flux Configuration.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n fluxConfigurationName: string,\n options?: FluxConfigurationsGetOptionalParams,\n ): Promise<FluxConfigurationsGetResponse>;\n /**\n * Create a new Kubernetes Flux Configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param fluxConfigurationName Name of the Flux Configuration.\n * @param fluxConfiguration Properties necessary to Create a FluxConfiguration.\n * @param options The options parameters.\n */\n beginCreateOrUpdate(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n fluxConfigurationName: string,\n fluxConfiguration: FluxConfiguration,\n options?: FluxConfigurationsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<FluxConfigurationsCreateOrUpdateResponse>,\n FluxConfigurationsCreateOrUpdateResponse\n >\n >;\n /**\n * Create a new Kubernetes Flux Configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param fluxConfigurationName Name of the Flux Configuration.\n * @param fluxConfiguration Properties necessary to Create a FluxConfiguration.\n * @param options The options parameters.\n */\n beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n fluxConfigurationName: string,\n fluxConfiguration: FluxConfiguration,\n options?: FluxConfigurationsCreateOrUpdateOptionalParams,\n ): Promise<FluxConfigurationsCreateOrUpdateResponse>;\n /**\n * Update an existing Kubernetes Flux Configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param fluxConfigurationName Name of the Flux Configuration.\n * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.\n * @param options The options parameters.\n */\n beginUpdate(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n fluxConfigurationName: string,\n fluxConfigurationPatch: FluxConfigurationPatch,\n options?: FluxConfigurationsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<FluxConfigurationsUpdateResponse>,\n FluxConfigurationsUpdateResponse\n >\n >;\n /**\n * Update an existing Kubernetes Flux Configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param fluxConfigurationName Name of the Flux Configuration.\n * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.\n * @param options The options parameters.\n */\n beginUpdateAndWait(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n fluxConfigurationName: string,\n fluxConfigurationPatch: FluxConfigurationPatch,\n options?: FluxConfigurationsUpdateOptionalParams,\n ): Promise<FluxConfigurationsUpdateResponse>;\n /**\n * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from\n * the source repo.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param fluxConfigurationName Name of the Flux Configuration.\n * @param options The options parameters.\n */\n beginDelete(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n fluxConfigurationName: string,\n options?: FluxConfigurationsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from\n * the source repo.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters, appliances.\n * @param clusterName The name of the kubernetes cluster.\n * @param fluxConfigurationName Name of the Flux Configuration.\n * @param options The options parameters.\n */\n beginDeleteAndWait(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n fluxConfigurationName: string,\n options?: FluxConfigurationsDeleteOptionalParams,\n ): Promise<void>;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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 "./fluxConfigurations.js";
|
|
9
|
+
export * from "./fluxConfigOperationStatus.js";
|
|
10
|
+
//# 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,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./fluxConfigurations.js\";\nexport * from \"./fluxConfigOperationStatus.js\";\n"]}
|
|
@@ -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,CAAC,IAAI,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAO/F"}
|
|
@@ -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,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAa,EAAE,iBAAqC;;IACvF,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(page: unknown, continuationToken: string | undefined): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
import * as coreAuth from "@azure/core-auth";
|
|
3
|
+
import { FluxConfigurations, FluxConfigOperationStatus } from "./operationsInterfaces/index.js";
|
|
4
|
+
import { FluxConfigurationClientOptionalParams } from "./models/index.js";
|
|
5
|
+
export declare class FluxConfigurationClient extends coreClient.ServiceClient {
|
|
6
|
+
$host: string;
|
|
7
|
+
subscriptionId: string;
|
|
8
|
+
apiVersion: string;
|
|
9
|
+
/**
|
|
10
|
+
* Initializes a new instance of the FluxConfigurationClient class.
|
|
11
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
12
|
+
* @param subscriptionId The ID of the target subscription.
|
|
13
|
+
* @param options The parameter options
|
|
14
|
+
*/
|
|
15
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: FluxConfigurationClientOptionalParams);
|
|
16
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
17
|
+
private addCustomApiVersionPolicy;
|
|
18
|
+
fluxConfigurations: FluxConfigurations;
|
|
19
|
+
fluxConfigOperationStatus: FluxConfigOperationStatus;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=fluxConfigurationClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fluxConfigurationClient.d.ts","sourceRoot":"","sources":["../../src/fluxConfigurationClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAGjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAChG,OAAO,EAAE,qCAAqC,EAAE,MAAM,mBAAmB,CAAC;AAE1E,qBAAa,uBAAwB,SAAQ,UAAU,CAAC,aAAa;IACnE,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,qCAAqC;IA0EjD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IAwBjC,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,yBAAyB,EAAE,yBAAyB,CAAC;CACtD"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.FluxConfigurationClient = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
13
|
+
const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
|
|
14
|
+
const index_js_1 = require("./operations/index.js");
|
|
15
|
+
class FluxConfigurationClient extends coreClient.ServiceClient {
|
|
16
|
+
/**
|
|
17
|
+
* Initializes a new instance of the FluxConfigurationClient class.
|
|
18
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
19
|
+
* @param subscriptionId The ID of the target subscription.
|
|
20
|
+
* @param options The parameter options
|
|
21
|
+
*/
|
|
22
|
+
constructor(credentials, subscriptionId, options) {
|
|
23
|
+
var _a, _b, _c;
|
|
24
|
+
if (credentials === undefined) {
|
|
25
|
+
throw new Error("'credentials' cannot be null");
|
|
26
|
+
}
|
|
27
|
+
if (subscriptionId === undefined) {
|
|
28
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
29
|
+
}
|
|
30
|
+
// Initializing default values for options
|
|
31
|
+
if (!options) {
|
|
32
|
+
options = {};
|
|
33
|
+
}
|
|
34
|
+
const defaults = {
|
|
35
|
+
requestContentType: "application/json; charset=utf-8",
|
|
36
|
+
credential: credentials,
|
|
37
|
+
};
|
|
38
|
+
const packageDetails = `azsdk-js-arm-kubernetesconfiguration-fluxconfigurations/1.0.0-beta.1`;
|
|
39
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
40
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
41
|
+
: `${packageDetails}`;
|
|
42
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
43
|
+
userAgentPrefix,
|
|
44
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
45
|
+
super(optionsWithDefaults);
|
|
46
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
47
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
48
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
49
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
50
|
+
}
|
|
51
|
+
if (!options ||
|
|
52
|
+
!options.pipeline ||
|
|
53
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
54
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
55
|
+
this.pipeline.removePolicy({
|
|
56
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
|
57
|
+
});
|
|
58
|
+
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
59
|
+
credential: credentials,
|
|
60
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
61
|
+
challengeCallbacks: {
|
|
62
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
|
|
63
|
+
},
|
|
64
|
+
}));
|
|
65
|
+
}
|
|
66
|
+
// Parameter assignments
|
|
67
|
+
this.subscriptionId = subscriptionId;
|
|
68
|
+
// Assigning values to Constant parameters
|
|
69
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
70
|
+
this.apiVersion = options.apiVersion || "2025-04-01";
|
|
71
|
+
this.fluxConfigurations = new index_js_1.FluxConfigurationsImpl(this);
|
|
72
|
+
this.fluxConfigOperationStatus = new index_js_1.FluxConfigOperationStatusImpl(this);
|
|
73
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
74
|
+
}
|
|
75
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
76
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
77
|
+
if (!apiVersion) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
const apiVersionPolicy = {
|
|
81
|
+
name: "CustomApiVersionPolicy",
|
|
82
|
+
async sendRequest(request, next) {
|
|
83
|
+
const param = request.url.split("?");
|
|
84
|
+
if (param.length > 1) {
|
|
85
|
+
const newParams = param[1].split("&").map((item) => {
|
|
86
|
+
if (item.indexOf("api-version") > -1) {
|
|
87
|
+
return "api-version=" + apiVersion;
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
return item;
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
94
|
+
}
|
|
95
|
+
return next(request);
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
exports.FluxConfigurationClient = FluxConfigurationClient;
|
|
102
|
+
//# sourceMappingURL=fluxConfigurationClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fluxConfigurationClient.js","sourceRoot":"","sources":["../../src/fluxConfigurationClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAG9D,oDAA8F;AAI9F,MAAa,uBAAwB,SAAQ,UAAU,CAAC,aAAa;IAKnE;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA+C;;QAE/C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAA0C;YACtD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,sEAAsE,CAAC;QAC9F,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,QAAQ,EAAE,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,8BAA8B,GAChF,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAE3B,IAAI,oCAAoC,GAAY,KAAK,CAAC;QAC1D,IAAI,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,KAAI,OAAO,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC1E,MAAM,gBAAgB,GACpB,OAAO,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAC;YACxC,oCAAoC,GAAG,gBAAgB,CAAC,IAAI,CAC1D,CAAC,cAAc,EAAE,EAAE,CACjB,cAAc,CAAC,IAAI,KAAK,gBAAgB,CAAC,mCAAmC,CAC/E,CAAC;QACJ,CAAC;QACD,IACE,CAAC,OAAO;YACR,CAAC,OAAO,CAAC,QAAQ;YACjB,OAAO,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAC,MAAM,IAAI,CAAC;YACjD,CAAC,oCAAoC,EACrC,CAAC;YACD,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC;gBACzB,IAAI,EAAE,gBAAgB,CAAC,mCAAmC;aAC3D,CAAC,CAAC;YACH,IAAI,CAAC,QAAQ,CAAC,SAAS,CACrB,gBAAgB,CAAC,+BAA+B,CAAC;gBAC/C,UAAU,EAAE,WAAW;gBACvB,MAAM,EACJ,MAAA,mBAAmB,CAAC,gBAAgB,mCAAI,GAAG,mBAAmB,CAAC,QAAQ,WAAW;gBACpF,kBAAkB,EAAE;oBAClB,2BAA2B,EAAE,UAAU,CAAC,gCAAgC;iBACzE;aACF,CAAC,CACH,CAAC;QACJ,CAAC;QACD,wBAAwB;QACxB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QAErC,0CAA0C;QAC1C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,8BAA8B,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;QACrD,IAAI,CAAC,kBAAkB,GAAG,IAAI,iCAAsB,CAAC,IAAI,CAAC,CAAC;QAC3D,IAAI,CAAC,yBAAyB,GAAG,IAAI,wCAA6B,CAAC,IAAI,CAAC,CAAC;QACzE,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAED,8GAA8G;IACtG,yBAAyB,CAAC,UAAmB;QACnD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO;QACT,CAAC;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CAAC,OAAwB,EAAE,IAAiB;gBAC3D,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAIF;AAnHD,0DAmHC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport { PipelineRequest, PipelineResponse, SendRequest } from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { FluxConfigurationsImpl, FluxConfigOperationStatusImpl } from \"./operations/index.js\";\nimport { FluxConfigurations, FluxConfigOperationStatus } from \"./operationsInterfaces/index.js\";\nimport { FluxConfigurationClientOptionalParams } from \"./models/index.js\";\n\nexport class FluxConfigurationClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the FluxConfigurationClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: FluxConfigurationClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: FluxConfigurationClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-kubernetesconfiguration-fluxconfigurations/1.0.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2025-04-01\";\n this.fluxConfigurations = new FluxConfigurationsImpl(this);\n this.fluxConfigOperationStatus = new FluxConfigOperationStatusImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n fluxConfigurations: FluxConfigurations;\n fluxConfigOperationStatus: FluxConfigOperationStatus;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,cAAc,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.FluxConfigurationClient = exports.getContinuationToken = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
var pagingHelper_js_1 = require("./pagingHelper.js");
|
|
14
|
+
Object.defineProperty(exports, "getContinuationToken", { enumerable: true, get: function () { return pagingHelper_js_1.getContinuationToken; } });
|
|
15
|
+
tslib_1.__exportStar(require("./models/index.js"), exports);
|
|
16
|
+
var fluxConfigurationClient_js_1 = require("./fluxConfigurationClient.js");
|
|
17
|
+
Object.defineProperty(exports, "FluxConfigurationClient", { enumerable: true, get: function () { return fluxConfigurationClient_js_1.FluxConfigurationClient; } });
|
|
18
|
+
tslib_1.__exportStar(require("./operationsInterfaces/index.js"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,4CAA4C;AAC5C,qDAAyD;AAAhD,uHAAA,oBAAoB,OAAA;AAC7B,4DAAkC;AAClC,2EAAuE;AAA9D,qIAAA,uBAAuB,OAAA;AAChC,0EAAgD","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { FluxConfigurationClient } from \"./fluxConfigurationClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
2
|
+
export declare function createLroSpec<T>(inputs: {
|
|
3
|
+
sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
|
|
4
|
+
args: Record<string, unknown>;
|
|
5
|
+
spec: {
|
|
6
|
+
readonly requestBody?: unknown;
|
|
7
|
+
readonly path?: string;
|
|
8
|
+
readonly httpMethod: string;
|
|
9
|
+
} & Record<string, any>;
|
|
10
|
+
}): LongRunningOperation<T>;
|
|
11
|
+
//# sourceMappingURL=lroImpl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAgB1B"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.createLroSpec = createLroSpec;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
function createLroSpec(inputs) {
|
|
13
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
14
|
+
return {
|
|
15
|
+
requestMethod: spec.httpMethod,
|
|
16
|
+
requestPath: spec.path,
|
|
17
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
18
|
+
sendPollRequest: (path, options) => {
|
|
19
|
+
const { requestBody } = spec, restSpec = tslib_1.__rest(spec, ["requestBody"]);
|
|
20
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=lroImpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAKH,sCAwBC;;AAxBD,SAAgB,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CAAC,IAAY,EAAE,OAA2C,EAAE,EAAE;YAC7E,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,kBAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (path: string, options?: { abortSignal?: AbortSignalLike }) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
|