@azure/arm-appcontainers 2.2.0-alpha.20250718.1 → 2.2.0-alpha.20250730.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/dist/browser/containerAppsAPIClient.js +40 -5
- package/dist/browser/containerAppsAPIClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +318 -145
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/availableWorkloadProfiles.js +23 -40
- package/dist/browser/operations/availableWorkloadProfiles.js.map +1 -1
- package/dist/browser/operations/billingMeters.js +1 -0
- package/dist/browser/operations/billingMeters.js.map +1 -1
- package/dist/browser/operations/certificates.js +23 -40
- package/dist/browser/operations/certificates.js.map +1 -1
- package/dist/browser/operations/connectedEnvironments.js +67 -91
- package/dist/browser/operations/connectedEnvironments.js.map +1 -1
- package/dist/browser/operations/connectedEnvironmentsCertificates.js +23 -40
- package/dist/browser/operations/connectedEnvironmentsCertificates.js.map +1 -1
- package/dist/browser/operations/connectedEnvironmentsDaprComponents.js +23 -40
- package/dist/browser/operations/connectedEnvironmentsDaprComponents.js.map +1 -1
- package/dist/browser/operations/connectedEnvironmentsStorages.js +1 -0
- package/dist/browser/operations/connectedEnvironmentsStorages.js.map +1 -1
- package/dist/browser/operations/containerApps.js +100 -109
- package/dist/browser/operations/containerApps.js.map +1 -1
- package/dist/browser/operations/containerAppsAuthConfigs.js +23 -40
- package/dist/browser/operations/containerAppsAuthConfigs.js.map +1 -1
- package/dist/browser/operations/containerAppsDiagnostics.js +45 -79
- package/dist/browser/operations/containerAppsDiagnostics.js.map +1 -1
- package/dist/browser/operations/containerAppsRevisionReplicas.js +1 -0
- package/dist/browser/operations/containerAppsRevisionReplicas.js.map +1 -1
- package/dist/browser/operations/containerAppsRevisions.js +23 -40
- package/dist/browser/operations/containerAppsRevisions.js.map +1 -1
- package/dist/browser/operations/containerAppsSessionPools.js +78 -97
- package/dist/browser/operations/containerAppsSessionPools.js.map +1 -1
- package/dist/browser/operations/containerAppsSourceControls.js +45 -52
- package/dist/browser/operations/containerAppsSourceControls.js.map +1 -1
- package/dist/browser/operations/daprComponents.js +23 -40
- package/dist/browser/operations/daprComponents.js.map +1 -1
- package/dist/browser/operations/javaComponents.js +56 -58
- package/dist/browser/operations/javaComponents.js.map +1 -1
- package/dist/browser/operations/jobs.js +136 -157
- package/dist/browser/operations/jobs.js.map +1 -1
- package/dist/browser/operations/jobsExecutions.js +23 -40
- package/dist/browser/operations/jobsExecutions.js.map +1 -1
- package/dist/browser/operations/managedCertificates.js +34 -46
- package/dist/browser/operations/managedCertificates.js.map +1 -1
- package/dist/browser/operations/managedEnvironmentDiagnostics.js +1 -0
- package/dist/browser/operations/managedEnvironmentDiagnostics.js.map +1 -1
- package/dist/browser/operations/managedEnvironmentUsages.js +23 -40
- package/dist/browser/operations/managedEnvironmentUsages.js.map +1 -1
- package/dist/browser/operations/managedEnvironments.js +100 -136
- package/dist/browser/operations/managedEnvironments.js.map +1 -1
- package/dist/browser/operations/managedEnvironmentsDiagnostics.js +1 -0
- package/dist/browser/operations/managedEnvironmentsDiagnostics.js.map +1 -1
- package/dist/browser/operations/managedEnvironmentsStorages.js +1 -0
- package/dist/browser/operations/managedEnvironmentsStorages.js.map +1 -1
- package/dist/browser/operations/namespaces.js +1 -0
- package/dist/browser/operations/namespaces.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/usages.js +23 -40
- package/dist/browser/operations/usages.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/containerAppsAPIClient.js +40 -5
- package/dist/commonjs/containerAppsAPIClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +318 -145
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/availableWorkloadProfiles.js +23 -39
- package/dist/commonjs/operations/availableWorkloadProfiles.js.map +1 -1
- package/dist/commonjs/operations/billingMeters.js +1 -0
- package/dist/commonjs/operations/billingMeters.js.map +1 -1
- package/dist/commonjs/operations/certificates.js +23 -39
- package/dist/commonjs/operations/certificates.js.map +1 -1
- package/dist/commonjs/operations/connectedEnvironments.js +67 -90
- package/dist/commonjs/operations/connectedEnvironments.js.map +1 -1
- package/dist/commonjs/operations/connectedEnvironmentsCertificates.js +23 -39
- package/dist/commonjs/operations/connectedEnvironmentsCertificates.js.map +1 -1
- package/dist/commonjs/operations/connectedEnvironmentsDaprComponents.js +23 -39
- package/dist/commonjs/operations/connectedEnvironmentsDaprComponents.js.map +1 -1
- package/dist/commonjs/operations/connectedEnvironmentsStorages.js +1 -0
- package/dist/commonjs/operations/connectedEnvironmentsStorages.js.map +1 -1
- package/dist/commonjs/operations/containerApps.js +100 -108
- package/dist/commonjs/operations/containerApps.js.map +1 -1
- package/dist/commonjs/operations/containerAppsAuthConfigs.js +23 -39
- package/dist/commonjs/operations/containerAppsAuthConfigs.js.map +1 -1
- package/dist/commonjs/operations/containerAppsDiagnostics.js +45 -78
- package/dist/commonjs/operations/containerAppsDiagnostics.js.map +1 -1
- package/dist/commonjs/operations/containerAppsRevisionReplicas.js +1 -0
- package/dist/commonjs/operations/containerAppsRevisionReplicas.js.map +1 -1
- package/dist/commonjs/operations/containerAppsRevisions.js +23 -39
- package/dist/commonjs/operations/containerAppsRevisions.js.map +1 -1
- package/dist/commonjs/operations/containerAppsSessionPools.js +78 -96
- package/dist/commonjs/operations/containerAppsSessionPools.js.map +1 -1
- package/dist/commonjs/operations/containerAppsSourceControls.js +45 -51
- package/dist/commonjs/operations/containerAppsSourceControls.js.map +1 -1
- package/dist/commonjs/operations/daprComponents.js +23 -39
- package/dist/commonjs/operations/daprComponents.js.map +1 -1
- package/dist/commonjs/operations/javaComponents.js +56 -57
- package/dist/commonjs/operations/javaComponents.js.map +1 -1
- package/dist/commonjs/operations/jobs.js +136 -156
- package/dist/commonjs/operations/jobs.js.map +1 -1
- package/dist/commonjs/operations/jobsExecutions.js +23 -39
- package/dist/commonjs/operations/jobsExecutions.js.map +1 -1
- package/dist/commonjs/operations/managedCertificates.js +34 -45
- package/dist/commonjs/operations/managedCertificates.js.map +1 -1
- package/dist/commonjs/operations/managedEnvironmentDiagnostics.js +1 -0
- package/dist/commonjs/operations/managedEnvironmentDiagnostics.js.map +1 -1
- package/dist/commonjs/operations/managedEnvironmentUsages.js +23 -39
- package/dist/commonjs/operations/managedEnvironmentUsages.js.map +1 -1
- package/dist/commonjs/operations/managedEnvironments.js +100 -135
- package/dist/commonjs/operations/managedEnvironments.js.map +1 -1
- package/dist/commonjs/operations/managedEnvironmentsDiagnostics.js +1 -0
- package/dist/commonjs/operations/managedEnvironmentsDiagnostics.js.map +1 -1
- package/dist/commonjs/operations/managedEnvironmentsStorages.js +1 -0
- package/dist/commonjs/operations/managedEnvironmentsStorages.js.map +1 -1
- package/dist/commonjs/operations/namespaces.js +1 -0
- package/dist/commonjs/operations/namespaces.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/usages.js +23 -39
- package/dist/commonjs/operations/usages.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/containerAppsAPIClient.js +40 -5
- package/dist/esm/containerAppsAPIClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +318 -145
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/availableWorkloadProfiles.js +23 -40
- package/dist/esm/operations/availableWorkloadProfiles.js.map +1 -1
- package/dist/esm/operations/billingMeters.js +1 -0
- package/dist/esm/operations/billingMeters.js.map +1 -1
- package/dist/esm/operations/certificates.js +23 -40
- package/dist/esm/operations/certificates.js.map +1 -1
- package/dist/esm/operations/connectedEnvironments.js +67 -91
- package/dist/esm/operations/connectedEnvironments.js.map +1 -1
- package/dist/esm/operations/connectedEnvironmentsCertificates.js +23 -40
- package/dist/esm/operations/connectedEnvironmentsCertificates.js.map +1 -1
- package/dist/esm/operations/connectedEnvironmentsDaprComponents.js +23 -40
- package/dist/esm/operations/connectedEnvironmentsDaprComponents.js.map +1 -1
- package/dist/esm/operations/connectedEnvironmentsStorages.js +1 -0
- package/dist/esm/operations/connectedEnvironmentsStorages.js.map +1 -1
- package/dist/esm/operations/containerApps.js +100 -109
- package/dist/esm/operations/containerApps.js.map +1 -1
- package/dist/esm/operations/containerAppsAuthConfigs.js +23 -40
- package/dist/esm/operations/containerAppsAuthConfigs.js.map +1 -1
- package/dist/esm/operations/containerAppsDiagnostics.js +45 -79
- package/dist/esm/operations/containerAppsDiagnostics.js.map +1 -1
- package/dist/esm/operations/containerAppsRevisionReplicas.js +1 -0
- package/dist/esm/operations/containerAppsRevisionReplicas.js.map +1 -1
- package/dist/esm/operations/containerAppsRevisions.js +23 -40
- package/dist/esm/operations/containerAppsRevisions.js.map +1 -1
- package/dist/esm/operations/containerAppsSessionPools.js +78 -97
- package/dist/esm/operations/containerAppsSessionPools.js.map +1 -1
- package/dist/esm/operations/containerAppsSourceControls.js +45 -52
- package/dist/esm/operations/containerAppsSourceControls.js.map +1 -1
- package/dist/esm/operations/daprComponents.js +23 -40
- package/dist/esm/operations/daprComponents.js.map +1 -1
- package/dist/esm/operations/javaComponents.js +56 -58
- package/dist/esm/operations/javaComponents.js.map +1 -1
- package/dist/esm/operations/jobs.js +136 -157
- package/dist/esm/operations/jobs.js.map +1 -1
- package/dist/esm/operations/jobsExecutions.js +23 -40
- package/dist/esm/operations/jobsExecutions.js.map +1 -1
- package/dist/esm/operations/managedCertificates.js +34 -46
- package/dist/esm/operations/managedCertificates.js.map +1 -1
- package/dist/esm/operations/managedEnvironmentDiagnostics.js +1 -0
- package/dist/esm/operations/managedEnvironmentDiagnostics.js.map +1 -1
- package/dist/esm/operations/managedEnvironmentUsages.js +23 -40
- package/dist/esm/operations/managedEnvironmentUsages.js.map +1 -1
- package/dist/esm/operations/managedEnvironments.js +100 -136
- package/dist/esm/operations/managedEnvironments.js.map +1 -1
- package/dist/esm/operations/managedEnvironmentsDiagnostics.js +1 -0
- package/dist/esm/operations/managedEnvironmentsDiagnostics.js.map +1 -1
- package/dist/esm/operations/managedEnvironmentsStorages.js +1 -0
- package/dist/esm/operations/managedEnvironmentsStorages.js.map +1 -1
- package/dist/esm/operations/namespaces.js +1 -0
- package/dist/esm/operations/namespaces.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/usages.js +23 -40
- package/dist/esm/operations/usages.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/containerAppsAPIClient.js +40 -5
- package/dist/react-native/containerAppsAPIClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +318 -145
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/availableWorkloadProfiles.js +23 -40
- package/dist/react-native/operations/availableWorkloadProfiles.js.map +1 -1
- package/dist/react-native/operations/billingMeters.js +1 -0
- package/dist/react-native/operations/billingMeters.js.map +1 -1
- package/dist/react-native/operations/certificates.js +23 -40
- package/dist/react-native/operations/certificates.js.map +1 -1
- package/dist/react-native/operations/connectedEnvironments.js +67 -91
- package/dist/react-native/operations/connectedEnvironments.js.map +1 -1
- package/dist/react-native/operations/connectedEnvironmentsCertificates.js +23 -40
- package/dist/react-native/operations/connectedEnvironmentsCertificates.js.map +1 -1
- package/dist/react-native/operations/connectedEnvironmentsDaprComponents.js +23 -40
- package/dist/react-native/operations/connectedEnvironmentsDaprComponents.js.map +1 -1
- package/dist/react-native/operations/connectedEnvironmentsStorages.js +1 -0
- package/dist/react-native/operations/connectedEnvironmentsStorages.js.map +1 -1
- package/dist/react-native/operations/containerApps.js +100 -109
- package/dist/react-native/operations/containerApps.js.map +1 -1
- package/dist/react-native/operations/containerAppsAuthConfigs.js +23 -40
- package/dist/react-native/operations/containerAppsAuthConfigs.js.map +1 -1
- package/dist/react-native/operations/containerAppsDiagnostics.js +45 -79
- package/dist/react-native/operations/containerAppsDiagnostics.js.map +1 -1
- package/dist/react-native/operations/containerAppsRevisionReplicas.js +1 -0
- package/dist/react-native/operations/containerAppsRevisionReplicas.js.map +1 -1
- package/dist/react-native/operations/containerAppsRevisions.js +23 -40
- package/dist/react-native/operations/containerAppsRevisions.js.map +1 -1
- package/dist/react-native/operations/containerAppsSessionPools.js +78 -97
- package/dist/react-native/operations/containerAppsSessionPools.js.map +1 -1
- package/dist/react-native/operations/containerAppsSourceControls.js +45 -52
- package/dist/react-native/operations/containerAppsSourceControls.js.map +1 -1
- package/dist/react-native/operations/daprComponents.js +23 -40
- package/dist/react-native/operations/daprComponents.js.map +1 -1
- package/dist/react-native/operations/javaComponents.js +56 -58
- package/dist/react-native/operations/javaComponents.js.map +1 -1
- package/dist/react-native/operations/jobs.js +136 -157
- package/dist/react-native/operations/jobs.js.map +1 -1
- package/dist/react-native/operations/jobsExecutions.js +23 -40
- package/dist/react-native/operations/jobsExecutions.js.map +1 -1
- package/dist/react-native/operations/managedCertificates.js +34 -46
- package/dist/react-native/operations/managedCertificates.js.map +1 -1
- package/dist/react-native/operations/managedEnvironmentDiagnostics.js +1 -0
- package/dist/react-native/operations/managedEnvironmentDiagnostics.js.map +1 -1
- package/dist/react-native/operations/managedEnvironmentUsages.js +23 -40
- package/dist/react-native/operations/managedEnvironmentUsages.js.map +1 -1
- package/dist/react-native/operations/managedEnvironments.js +100 -136
- package/dist/react-native/operations/managedEnvironments.js.map +1 -1
- package/dist/react-native/operations/managedEnvironmentsDiagnostics.js +1 -0
- package/dist/react-native/operations/managedEnvironmentsDiagnostics.js.map +1 -1
- package/dist/react-native/operations/managedEnvironmentsStorages.js +1 -0
- package/dist/react-native/operations/managedEnvironmentsStorages.js.map +1 -1
- package/dist/react-native/operations/namespaces.js +1 -0
- package/dist/react-native/operations/namespaces.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/usages.js +23 -40
- package/dist/react-native/operations/usages.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-appcontainers-node.api.md +3476 -3476
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing ContainerAppsSourceControls operations. */
|
|
17
16
|
export class ContainerAppsSourceControlsImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class ContainerAppsSourceControls class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -38,52 +38,35 @@ export class ContainerAppsSourceControlsImpl {
|
|
|
38
38
|
return this;
|
|
39
39
|
},
|
|
40
40
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
42
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
43
|
}
|
|
44
44
|
return this.listByContainerAppPagingPage(resourceGroupName, containerAppName, options, settings);
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
listByContainerAppPagingPage(resourceGroupName, containerAppName, options, settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
});
|
|
48
|
+
async *listByContainerAppPagingPage(resourceGroupName, containerAppName, options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._listByContainerApp(resourceGroupName, containerAppName, options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
setContinuationToken(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listByContainerAppNext(resourceGroupName, containerAppName, continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
setContinuationToken(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
67
65
|
}
|
|
68
|
-
listByContainerAppPagingAll(resourceGroupName, containerAppName, options) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
for (var _d = true, _e = __asyncValues(this.listByContainerAppPagingPage(resourceGroupName, containerAppName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
73
|
-
_c = _f.value;
|
|
74
|
-
_d = false;
|
|
75
|
-
const page = _c;
|
|
76
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
80
|
-
finally {
|
|
81
|
-
try {
|
|
82
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
83
|
-
}
|
|
84
|
-
finally { if (e_1) throw e_1.error; }
|
|
85
|
-
}
|
|
86
|
-
});
|
|
66
|
+
async *listByContainerAppPagingAll(resourceGroupName, containerAppName, options) {
|
|
67
|
+
for await (const page of this.listByContainerAppPagingPage(resourceGroupName, containerAppName, options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
87
70
|
}
|
|
88
71
|
/**
|
|
89
72
|
* Get the Container App SourceControls in a given resource group.
|
|
@@ -117,14 +100,19 @@ export class ContainerAppsSourceControlsImpl {
|
|
|
117
100
|
return this.client.sendOperationRequest(args, spec);
|
|
118
101
|
};
|
|
119
102
|
const sendOperationFn = async (args, spec) => {
|
|
120
|
-
var _a;
|
|
121
103
|
let currentRawResponse = undefined;
|
|
122
|
-
const providedCallback =
|
|
104
|
+
const providedCallback = args.options?.onResponse;
|
|
123
105
|
const callback = (rawResponse, flatResponse) => {
|
|
124
106
|
currentRawResponse = rawResponse;
|
|
125
|
-
providedCallback
|
|
107
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
108
|
+
};
|
|
109
|
+
const updatedArgs = {
|
|
110
|
+
...args,
|
|
111
|
+
options: {
|
|
112
|
+
...args.options,
|
|
113
|
+
onResponse: callback,
|
|
114
|
+
},
|
|
126
115
|
};
|
|
127
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
128
116
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
129
117
|
return {
|
|
130
118
|
flatResponse,
|
|
@@ -147,8 +135,8 @@ export class ContainerAppsSourceControlsImpl {
|
|
|
147
135
|
spec: createOrUpdateOperationSpec,
|
|
148
136
|
});
|
|
149
137
|
const poller = await createHttpPoller(lro, {
|
|
150
|
-
restoreFrom: options
|
|
151
|
-
intervalInMs: options
|
|
138
|
+
restoreFrom: options?.resumeFrom,
|
|
139
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
152
140
|
});
|
|
153
141
|
await poller.poll();
|
|
154
142
|
return poller;
|
|
@@ -177,14 +165,19 @@ export class ContainerAppsSourceControlsImpl {
|
|
|
177
165
|
return this.client.sendOperationRequest(args, spec);
|
|
178
166
|
};
|
|
179
167
|
const sendOperationFn = async (args, spec) => {
|
|
180
|
-
var _a;
|
|
181
168
|
let currentRawResponse = undefined;
|
|
182
|
-
const providedCallback =
|
|
169
|
+
const providedCallback = args.options?.onResponse;
|
|
183
170
|
const callback = (rawResponse, flatResponse) => {
|
|
184
171
|
currentRawResponse = rawResponse;
|
|
185
|
-
providedCallback
|
|
172
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
173
|
+
};
|
|
174
|
+
const updatedArgs = {
|
|
175
|
+
...args,
|
|
176
|
+
options: {
|
|
177
|
+
...args.options,
|
|
178
|
+
onResponse: callback,
|
|
179
|
+
},
|
|
186
180
|
};
|
|
187
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
188
181
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
189
182
|
return {
|
|
190
183
|
flatResponse,
|
|
@@ -201,8 +194,8 @@ export class ContainerAppsSourceControlsImpl {
|
|
|
201
194
|
spec: deleteOperationSpec,
|
|
202
195
|
});
|
|
203
196
|
const poller = await createHttpPoller(lro, {
|
|
204
|
-
restoreFrom: options
|
|
205
|
-
intervalInMs: options
|
|
197
|
+
restoreFrom: options?.resumeFrom,
|
|
198
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
206
199
|
});
|
|
207
200
|
await poller.poll();
|
|
208
201
|
return poller;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"containerAppsSourceControls.js","sourceRoot":"","sources":["../../../src/operations/containerAppsSourceControls.ts"],"names":[],"mappings":"AAAA;;;;;;G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AE;YACP,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ContainerAppsSourceControls } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ContainerAppsAPIClient } from \"../containerAppsAPIClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n SourceControl,\n ContainerAppsSourceControlsListByContainerAppNextOptionalParams,\n ContainerAppsSourceControlsListByContainerAppOptionalParams,\n ContainerAppsSourceControlsListByContainerAppResponse,\n ContainerAppsSourceControlsGetOptionalParams,\n ContainerAppsSourceControlsGetResponse,\n ContainerAppsSourceControlsCreateOrUpdateOptionalParams,\n ContainerAppsSourceControlsCreateOrUpdateResponse,\n ContainerAppsSourceControlsDeleteOptionalParams,\n ContainerAppsSourceControlsListByContainerAppNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ContainerAppsSourceControls operations. */\nexport class ContainerAppsSourceControlsImpl\n implements ContainerAppsSourceControls\n{\n private readonly client: ContainerAppsAPIClient;\n\n /**\n * Initialize a new instance of the class ContainerAppsSourceControls class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerAppsAPIClient) {\n this.client = client;\n }\n\n /**\n * Get the Container App SourceControls in a given resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param containerAppName Name of the Container App.\n * @param options The options parameters.\n */\n public listByContainerApp(\n resourceGroupName: string,\n containerAppName: string,\n options?: ContainerAppsSourceControlsListByContainerAppOptionalParams,\n ): PagedAsyncIterableIterator<SourceControl> {\n const iter = this.listByContainerAppPagingAll(\n resourceGroupName,\n containerAppName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByContainerAppPagingPage(\n resourceGroupName,\n containerAppName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByContainerAppPagingPage(\n resourceGroupName: string,\n containerAppName: string,\n options?: ContainerAppsSourceControlsListByContainerAppOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<SourceControl[]> {\n let result: ContainerAppsSourceControlsListByContainerAppResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByContainerApp(\n resourceGroupName,\n containerAppName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByContainerAppNext(\n resourceGroupName,\n containerAppName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByContainerAppPagingAll(\n resourceGroupName: string,\n containerAppName: string,\n options?: ContainerAppsSourceControlsListByContainerAppOptionalParams,\n ): AsyncIterableIterator<SourceControl> {\n for await (const page of this.listByContainerAppPagingPage(\n resourceGroupName,\n containerAppName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get the Container App SourceControls in a given resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param containerAppName Name of the Container App.\n * @param options The options parameters.\n */\n private _listByContainerApp(\n resourceGroupName: string,\n containerAppName: string,\n options?: ContainerAppsSourceControlsListByContainerAppOptionalParams,\n ): Promise<ContainerAppsSourceControlsListByContainerAppResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, containerAppName, options },\n listByContainerAppOperationSpec,\n );\n }\n\n /**\n * Get a SourceControl of a Container App.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param containerAppName Name of the Container App.\n * @param sourceControlName Name of the Container App SourceControl.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n containerAppName: string,\n sourceControlName: string,\n options?: ContainerAppsSourceControlsGetOptionalParams,\n ): Promise<ContainerAppsSourceControlsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, containerAppName, sourceControlName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create or update the SourceControl for a Container App.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param containerAppName Name of the Container App.\n * @param sourceControlName Name of the Container App SourceControl.\n * @param sourceControlEnvelope Properties used to create a Container App SourceControl\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n containerAppName: string,\n sourceControlName: string,\n sourceControlEnvelope: SourceControl,\n options?: ContainerAppsSourceControlsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ContainerAppsSourceControlsCreateOrUpdateResponse>,\n ContainerAppsSourceControlsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ContainerAppsSourceControlsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n containerAppName,\n sourceControlName,\n sourceControlEnvelope,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n ContainerAppsSourceControlsCreateOrUpdateResponse,\n OperationState<ContainerAppsSourceControlsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or update the SourceControl for a Container App.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param containerAppName Name of the Container App.\n * @param sourceControlName Name of the Container App SourceControl.\n * @param sourceControlEnvelope Properties used to create a Container App SourceControl\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n containerAppName: string,\n sourceControlName: string,\n sourceControlEnvelope: SourceControl,\n options?: ContainerAppsSourceControlsCreateOrUpdateOptionalParams,\n ): Promise<ContainerAppsSourceControlsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n containerAppName,\n sourceControlName,\n sourceControlEnvelope,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a Container App SourceControl.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param containerAppName Name of the Container App.\n * @param sourceControlName Name of the Container App SourceControl.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n containerAppName: string,\n sourceControlName: string,\n options?: ContainerAppsSourceControlsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, containerAppName, sourceControlName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a Container App SourceControl.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param containerAppName Name of the Container App.\n * @param sourceControlName Name of the Container App SourceControl.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n containerAppName: string,\n sourceControlName: string,\n options?: ContainerAppsSourceControlsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n containerAppName,\n sourceControlName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByContainerAppNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param containerAppName Name of the Container App.\n * @param nextLink The nextLink from the previous successful call to the ListByContainerApp method.\n * @param options The options parameters.\n */\n private _listByContainerAppNext(\n resourceGroupName: string,\n containerAppName: string,\n nextLink: string,\n options?: ContainerAppsSourceControlsListByContainerAppNextOptionalParams,\n ): Promise<ContainerAppsSourceControlsListByContainerAppNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, containerAppName, nextLink, options },\n listByContainerAppNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByContainerAppOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SourceControlCollection,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.containerAppName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SourceControl,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.containerAppName,\n Parameters.sourceControlName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SourceControl,\n },\n 201: {\n bodyMapper: Mappers.SourceControl,\n },\n 202: {\n bodyMapper: Mappers.SourceControl,\n },\n 204: {\n bodyMapper: Mappers.SourceControl,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n requestBody: Parameters.sourceControlEnvelope,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.containerAppName,\n Parameters.sourceControlName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.containerAppName,\n Parameters.sourceControlName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByContainerAppNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SourceControlCollection,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.containerAppName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"containerAppsSourceControls.js","sourceRoot":"","sources":["../../../src/operations/containerAppsSourceControls.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAc9C,4CAA4C;AAC5C,+DAA+D;AAC/D,MAAM,OAAO,+BAA+B;IAGzB,MAAM,CAAyB;IAEhD;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,kBAAkB,CACvB,iBAAyB,EACzB,gBAAwB,EACxB,OAAqE;QAErE,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAC3C,iBAAiB,EACjB,gBAAgB,EAChB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAA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E;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ContainerAppsSourceControls } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ContainerAppsAPIClient } from \"../containerAppsAPIClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n SourceControl,\n ContainerAppsSourceControlsListByContainerAppNextOptionalParams,\n ContainerAppsSourceControlsListByContainerAppOptionalParams,\n ContainerAppsSourceControlsListByContainerAppResponse,\n ContainerAppsSourceControlsGetOptionalParams,\n ContainerAppsSourceControlsGetResponse,\n ContainerAppsSourceControlsCreateOrUpdateOptionalParams,\n ContainerAppsSourceControlsCreateOrUpdateResponse,\n ContainerAppsSourceControlsDeleteOptionalParams,\n ContainerAppsSourceControlsListByContainerAppNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ContainerAppsSourceControls operations. */\nexport class ContainerAppsSourceControlsImpl\n implements ContainerAppsSourceControls\n{\n private readonly client: ContainerAppsAPIClient;\n\n /**\n * Initialize a new instance of the class ContainerAppsSourceControls class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerAppsAPIClient) {\n this.client = client;\n }\n\n /**\n * Get the Container App SourceControls in a given resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param containerAppName Name of the Container App.\n * @param options The options parameters.\n */\n public listByContainerApp(\n resourceGroupName: string,\n containerAppName: string,\n options?: ContainerAppsSourceControlsListByContainerAppOptionalParams,\n ): PagedAsyncIterableIterator<SourceControl> {\n const iter = this.listByContainerAppPagingAll(\n resourceGroupName,\n containerAppName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByContainerAppPagingPage(\n resourceGroupName,\n containerAppName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByContainerAppPagingPage(\n resourceGroupName: string,\n containerAppName: string,\n options?: ContainerAppsSourceControlsListByContainerAppOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<SourceControl[]> {\n let result: ContainerAppsSourceControlsListByContainerAppResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByContainerApp(\n resourceGroupName,\n containerAppName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByContainerAppNext(\n resourceGroupName,\n containerAppName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByContainerAppPagingAll(\n resourceGroupName: string,\n containerAppName: string,\n options?: ContainerAppsSourceControlsListByContainerAppOptionalParams,\n ): AsyncIterableIterator<SourceControl> {\n for await (const page of this.listByContainerAppPagingPage(\n resourceGroupName,\n containerAppName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get the Container App SourceControls in a given resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param containerAppName Name of the Container App.\n * @param options The options parameters.\n */\n private _listByContainerApp(\n resourceGroupName: string,\n containerAppName: string,\n options?: ContainerAppsSourceControlsListByContainerAppOptionalParams,\n ): Promise<ContainerAppsSourceControlsListByContainerAppResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, containerAppName, options },\n listByContainerAppOperationSpec,\n );\n }\n\n /**\n * Get a SourceControl of a Container App.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param containerAppName Name of the Container App.\n * @param sourceControlName Name of the Container App SourceControl.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n containerAppName: string,\n sourceControlName: string,\n options?: ContainerAppsSourceControlsGetOptionalParams,\n ): Promise<ContainerAppsSourceControlsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, containerAppName, sourceControlName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create or update the SourceControl for a Container App.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param containerAppName Name of the Container App.\n * @param sourceControlName Name of the Container App SourceControl.\n * @param sourceControlEnvelope Properties used to create a Container App SourceControl\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n containerAppName: string,\n sourceControlName: string,\n sourceControlEnvelope: SourceControl,\n options?: ContainerAppsSourceControlsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ContainerAppsSourceControlsCreateOrUpdateResponse>,\n ContainerAppsSourceControlsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ContainerAppsSourceControlsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n containerAppName,\n sourceControlName,\n sourceControlEnvelope,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n ContainerAppsSourceControlsCreateOrUpdateResponse,\n OperationState<ContainerAppsSourceControlsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or update the SourceControl for a Container App.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param containerAppName Name of the Container App.\n * @param sourceControlName Name of the Container App SourceControl.\n * @param sourceControlEnvelope Properties used to create a Container App SourceControl\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n containerAppName: string,\n sourceControlName: string,\n sourceControlEnvelope: SourceControl,\n options?: ContainerAppsSourceControlsCreateOrUpdateOptionalParams,\n ): Promise<ContainerAppsSourceControlsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n containerAppName,\n sourceControlName,\n sourceControlEnvelope,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a Container App SourceControl.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param containerAppName Name of the Container App.\n * @param sourceControlName Name of the Container App SourceControl.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n containerAppName: string,\n sourceControlName: string,\n options?: ContainerAppsSourceControlsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, containerAppName, sourceControlName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a Container App SourceControl.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param containerAppName Name of the Container App.\n * @param sourceControlName Name of the Container App SourceControl.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n containerAppName: string,\n sourceControlName: string,\n options?: ContainerAppsSourceControlsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n containerAppName,\n sourceControlName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByContainerAppNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param containerAppName Name of the Container App.\n * @param nextLink The nextLink from the previous successful call to the ListByContainerApp method.\n * @param options The options parameters.\n */\n private _listByContainerAppNext(\n resourceGroupName: string,\n containerAppName: string,\n nextLink: string,\n options?: ContainerAppsSourceControlsListByContainerAppNextOptionalParams,\n ): Promise<ContainerAppsSourceControlsListByContainerAppNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, containerAppName, nextLink, options },\n listByContainerAppNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByContainerAppOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SourceControlCollection,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.containerAppName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SourceControl,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.containerAppName,\n Parameters.sourceControlName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SourceControl,\n },\n 201: {\n bodyMapper: Mappers.SourceControl,\n },\n 202: {\n bodyMapper: Mappers.SourceControl,\n },\n 204: {\n bodyMapper: Mappers.SourceControl,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n requestBody: Parameters.sourceControlEnvelope,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.containerAppName,\n Parameters.sourceControlName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.containerAppName,\n Parameters.sourceControlName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByContainerAppNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SourceControlCollection,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.containerAppName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing DaprComponents operations. */
|
|
15
14
|
export class DaprComponentsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class DaprComponents class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -36,52 +36,35 @@ export class DaprComponentsImpl {
|
|
|
36
36
|
return this;
|
|
37
37
|
},
|
|
38
38
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
39
|
+
if (settings?.maxPageSize) {
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.listPagingPage(resourceGroupName, environmentName, options, settings);
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
listPagingPage(resourceGroupName, environmentName, options, settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
});
|
|
46
|
+
async *listPagingPage(resourceGroupName, environmentName, options, settings) {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings?.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = await this._list(resourceGroupName, environmentName, options);
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield page;
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = await this._listNext(resourceGroupName, environmentName, continuationToken, options);
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
65
63
|
}
|
|
66
|
-
listPagingAll(resourceGroupName, environmentName, options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, environmentName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
-
_c = _f.value;
|
|
72
|
-
_d = false;
|
|
73
|
-
const page = _c;
|
|
74
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
-
finally {
|
|
79
|
-
try {
|
|
80
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
-
}
|
|
82
|
-
finally { if (e_1) throw e_1.error; }
|
|
83
|
-
}
|
|
84
|
-
});
|
|
64
|
+
async *listPagingAll(resourceGroupName, environmentName, options) {
|
|
65
|
+
for await (const page of this.listPagingPage(resourceGroupName, environmentName, options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
/**
|
|
87
70
|
* Get the Dapr Components for a managed environment.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daprComponents.js","sourceRoot":"","sources":["../../../src/operations/daprComponents.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAiBtD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IAG7B;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,eAAuB,EACvB,OAA0C;QAE1C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,eAAe,EACf,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,iBAAiB,EACjB,eAAe,E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E,OAAO,CAAC,qBAAqB;SAC1C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { DaprComponents } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ContainerAppsAPIClient } from \"../containerAppsAPIClient.js\";\nimport {\n DaprComponent,\n DaprComponentsListNextOptionalParams,\n DaprComponentsListOptionalParams,\n DaprComponentsListResponse,\n DaprComponentsGetOptionalParams,\n DaprComponentsGetResponse,\n DaprComponentsCreateOrUpdateOptionalParams,\n DaprComponentsCreateOrUpdateResponse,\n DaprComponentsDeleteOptionalParams,\n DaprComponentsListSecretsOptionalParams,\n DaprComponentsListSecretsResponse,\n DaprComponentsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DaprComponents operations. */\nexport class DaprComponentsImpl implements DaprComponents {\n private readonly client: ContainerAppsAPIClient;\n\n /**\n * Initialize a new instance of the class DaprComponents class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerAppsAPIClient) {\n this.client = client;\n }\n\n /**\n * Get the Dapr Components for a managed environment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n environmentName: string,\n options?: DaprComponentsListOptionalParams,\n ): PagedAsyncIterableIterator<DaprComponent> {\n const iter = this.listPagingAll(\n resourceGroupName,\n environmentName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n environmentName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n environmentName: string,\n options?: DaprComponentsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DaprComponent[]> {\n let result: DaprComponentsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, environmentName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n environmentName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n environmentName: string,\n options?: DaprComponentsListOptionalParams,\n ): AsyncIterableIterator<DaprComponent> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n environmentName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get the Dapr Components for a managed environment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n environmentName: string,\n options?: DaprComponentsListOptionalParams,\n ): Promise<DaprComponentsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Get a dapr component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param componentName Name of the Dapr Component.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n environmentName: string,\n componentName: string,\n options?: DaprComponentsGetOptionalParams,\n ): Promise<DaprComponentsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, componentName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates or updates a Dapr Component in a Managed Environment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param componentName Name of the Dapr Component.\n * @param daprComponentEnvelope Configuration details of the Dapr Component.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n environmentName: string,\n componentName: string,\n daprComponentEnvelope: DaprComponent,\n options?: DaprComponentsCreateOrUpdateOptionalParams,\n ): Promise<DaprComponentsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n environmentName,\n componentName,\n daprComponentEnvelope,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Delete a Dapr Component from a Managed Environment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param componentName Name of the Dapr Component.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n environmentName: string,\n componentName: string,\n options?: DaprComponentsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, componentName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * List secrets for a dapr component\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param componentName Name of the Dapr Component.\n * @param options The options parameters.\n */\n listSecrets(\n resourceGroupName: string,\n environmentName: string,\n componentName: string,\n options?: DaprComponentsListSecretsOptionalParams,\n ): Promise<DaprComponentsListSecretsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, componentName, options },\n listSecretsOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n environmentName: string,\n nextLink: string,\n options?: DaprComponentsListNextOptionalParams,\n ): Promise<DaprComponentsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DaprComponentsCollection,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DaprComponent,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.componentName,\n Parameters.environmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DaprComponent,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n requestBody: Parameters.daprComponentEnvelope,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.componentName,\n Parameters.environmentName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.componentName,\n Parameters.environmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listSecretsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}/listSecrets\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DaprSecretsCollection,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.componentName,\n Parameters.environmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DaprComponentsCollection,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.environmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"daprComponents.js","sourceRoot":"","sources":["../../../src/operations/daprComponents.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAiBtD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IACZ,MAAM,CAAyB;IAEhD;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,eAAuB,EACvB,OAA0C;QAE1C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,eAAe,EACf,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,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,MAAM,wBAAwB,GAA6B;IACzD,IAAI,EAAE,6KAA6K;IACnL,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { DaprComponents } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ContainerAppsAPIClient } from \"../containerAppsAPIClient.js\";\nimport {\n DaprComponent,\n DaprComponentsListNextOptionalParams,\n DaprComponentsListOptionalParams,\n DaprComponentsListResponse,\n DaprComponentsGetOptionalParams,\n DaprComponentsGetResponse,\n DaprComponentsCreateOrUpdateOptionalParams,\n DaprComponentsCreateOrUpdateResponse,\n DaprComponentsDeleteOptionalParams,\n DaprComponentsListSecretsOptionalParams,\n DaprComponentsListSecretsResponse,\n DaprComponentsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DaprComponents operations. */\nexport class DaprComponentsImpl implements DaprComponents {\n private readonly client: ContainerAppsAPIClient;\n\n /**\n * Initialize a new instance of the class DaprComponents class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerAppsAPIClient) {\n this.client = client;\n }\n\n /**\n * Get the Dapr Components for a managed environment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n environmentName: string,\n options?: DaprComponentsListOptionalParams,\n ): PagedAsyncIterableIterator<DaprComponent> {\n const iter = this.listPagingAll(\n resourceGroupName,\n environmentName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n environmentName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n environmentName: string,\n options?: DaprComponentsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DaprComponent[]> {\n let result: DaprComponentsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, environmentName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n environmentName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n environmentName: string,\n options?: DaprComponentsListOptionalParams,\n ): AsyncIterableIterator<DaprComponent> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n environmentName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get the Dapr Components for a managed environment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n environmentName: string,\n options?: DaprComponentsListOptionalParams,\n ): Promise<DaprComponentsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Get a dapr component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param componentName Name of the Dapr Component.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n environmentName: string,\n componentName: string,\n options?: DaprComponentsGetOptionalParams,\n ): Promise<DaprComponentsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, componentName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates or updates a Dapr Component in a Managed Environment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param componentName Name of the Dapr Component.\n * @param daprComponentEnvelope Configuration details of the Dapr Component.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n environmentName: string,\n componentName: string,\n daprComponentEnvelope: DaprComponent,\n options?: DaprComponentsCreateOrUpdateOptionalParams,\n ): Promise<DaprComponentsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n environmentName,\n componentName,\n daprComponentEnvelope,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Delete a Dapr Component from a Managed Environment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param componentName Name of the Dapr Component.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n environmentName: string,\n componentName: string,\n options?: DaprComponentsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, componentName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * List secrets for a dapr component\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param componentName Name of the Dapr Component.\n * @param options The options parameters.\n */\n listSecrets(\n resourceGroupName: string,\n environmentName: string,\n componentName: string,\n options?: DaprComponentsListSecretsOptionalParams,\n ): Promise<DaprComponentsListSecretsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, componentName, options },\n listSecretsOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n environmentName: string,\n nextLink: string,\n options?: DaprComponentsListNextOptionalParams,\n ): Promise<DaprComponentsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DaprComponentsCollection,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DaprComponent,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.componentName,\n Parameters.environmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DaprComponent,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n requestBody: Parameters.daprComponentEnvelope,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.componentName,\n Parameters.environmentName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.componentName,\n Parameters.environmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listSecretsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}/listSecrets\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DaprSecretsCollection,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.componentName,\n Parameters.environmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DaprComponentsCollection,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.environmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|