@azure/arm-appcontainers 2.2.0-alpha.20250718.1 → 2.2.0-alpha.20250721.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 Jobs operations. */
|
|
17
16
|
export class JobsImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class Jobs class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -38,52 +38,35 @@ export class JobsImpl {
|
|
|
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.listDetectorsPagingPage(resourceGroupName, jobName, options, settings);
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
listDetectorsPagingPage(resourceGroupName, jobName, options, settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
var _a, e_1, _b, _c;
|
|
71
|
-
try {
|
|
72
|
-
for (var _d = true, _e = __asyncValues(this.listDetectorsPagingPage(resourceGroupName, jobName, 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
|
-
});
|
|
48
|
+
async *listDetectorsPagingPage(resourceGroupName, jobName, options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._listDetectors(resourceGroupName, jobName, 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._listDetectorsNext(resourceGroupName, jobName, continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
setContinuationToken(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
async *listDetectorsPagingAll(resourceGroupName, jobName, options) {
|
|
67
|
+
for await (const page of this.listDetectorsPagingPage(resourceGroupName, jobName, options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
87
70
|
}
|
|
88
71
|
/**
|
|
89
72
|
* Get the Container Apps Jobs in a given subscription.
|
|
@@ -99,52 +82,35 @@ export class JobsImpl {
|
|
|
99
82
|
return this;
|
|
100
83
|
},
|
|
101
84
|
byPage: (settings) => {
|
|
102
|
-
if (settings
|
|
85
|
+
if (settings?.maxPageSize) {
|
|
103
86
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
104
87
|
}
|
|
105
88
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
106
89
|
},
|
|
107
90
|
};
|
|
108
91
|
}
|
|
109
|
-
listBySubscriptionPagingPage(options, settings) {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
var _a, e_2, _b, _c;
|
|
132
|
-
try {
|
|
133
|
-
for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
134
|
-
_c = _f.value;
|
|
135
|
-
_d = false;
|
|
136
|
-
const page = _c;
|
|
137
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
141
|
-
finally {
|
|
142
|
-
try {
|
|
143
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
144
|
-
}
|
|
145
|
-
finally { if (e_2) throw e_2.error; }
|
|
146
|
-
}
|
|
147
|
-
});
|
|
92
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
|
93
|
+
let result;
|
|
94
|
+
let continuationToken = settings?.continuationToken;
|
|
95
|
+
if (!continuationToken) {
|
|
96
|
+
result = await this._listBySubscription(options);
|
|
97
|
+
let page = result.value || [];
|
|
98
|
+
continuationToken = result.nextLink;
|
|
99
|
+
setContinuationToken(page, continuationToken);
|
|
100
|
+
yield page;
|
|
101
|
+
}
|
|
102
|
+
while (continuationToken) {
|
|
103
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
104
|
+
continuationToken = result.nextLink;
|
|
105
|
+
let page = result.value || [];
|
|
106
|
+
setContinuationToken(page, continuationToken);
|
|
107
|
+
yield page;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
async *listBySubscriptionPagingAll(options) {
|
|
111
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
112
|
+
yield* page;
|
|
113
|
+
}
|
|
148
114
|
}
|
|
149
115
|
/**
|
|
150
116
|
* Get the Container Apps Jobs in a given resource group.
|
|
@@ -161,52 +127,35 @@ export class JobsImpl {
|
|
|
161
127
|
return this;
|
|
162
128
|
},
|
|
163
129
|
byPage: (settings) => {
|
|
164
|
-
if (settings
|
|
130
|
+
if (settings?.maxPageSize) {
|
|
165
131
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
166
132
|
}
|
|
167
133
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
168
134
|
},
|
|
169
135
|
};
|
|
170
136
|
}
|
|
171
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
var _a, e_3, _b, _c;
|
|
194
|
-
try {
|
|
195
|
-
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
196
|
-
_c = _f.value;
|
|
197
|
-
_d = false;
|
|
198
|
-
const page = _c;
|
|
199
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
203
|
-
finally {
|
|
204
|
-
try {
|
|
205
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
206
|
-
}
|
|
207
|
-
finally { if (e_3) throw e_3.error; }
|
|
208
|
-
}
|
|
209
|
-
});
|
|
137
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
138
|
+
let result;
|
|
139
|
+
let continuationToken = settings?.continuationToken;
|
|
140
|
+
if (!continuationToken) {
|
|
141
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
142
|
+
let page = result.value || [];
|
|
143
|
+
continuationToken = result.nextLink;
|
|
144
|
+
setContinuationToken(page, continuationToken);
|
|
145
|
+
yield page;
|
|
146
|
+
}
|
|
147
|
+
while (continuationToken) {
|
|
148
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
149
|
+
continuationToken = result.nextLink;
|
|
150
|
+
let page = result.value || [];
|
|
151
|
+
setContinuationToken(page, continuationToken);
|
|
152
|
+
yield page;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
156
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
157
|
+
yield* page;
|
|
158
|
+
}
|
|
210
159
|
}
|
|
211
160
|
/**
|
|
212
161
|
* Get the list of diagnostics for a Container App Job.
|
|
@@ -273,14 +222,19 @@ export class JobsImpl {
|
|
|
273
222
|
return this.client.sendOperationRequest(args, spec);
|
|
274
223
|
};
|
|
275
224
|
const sendOperationFn = async (args, spec) => {
|
|
276
|
-
var _a;
|
|
277
225
|
let currentRawResponse = undefined;
|
|
278
|
-
const providedCallback =
|
|
226
|
+
const providedCallback = args.options?.onResponse;
|
|
279
227
|
const callback = (rawResponse, flatResponse) => {
|
|
280
228
|
currentRawResponse = rawResponse;
|
|
281
|
-
providedCallback
|
|
229
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
230
|
+
};
|
|
231
|
+
const updatedArgs = {
|
|
232
|
+
...args,
|
|
233
|
+
options: {
|
|
234
|
+
...args.options,
|
|
235
|
+
onResponse: callback,
|
|
236
|
+
},
|
|
282
237
|
};
|
|
283
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
284
238
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
285
239
|
return {
|
|
286
240
|
flatResponse,
|
|
@@ -297,8 +251,8 @@ export class JobsImpl {
|
|
|
297
251
|
spec: createOrUpdateOperationSpec,
|
|
298
252
|
});
|
|
299
253
|
const poller = await createHttpPoller(lro, {
|
|
300
|
-
restoreFrom: options
|
|
301
|
-
intervalInMs: options
|
|
254
|
+
restoreFrom: options?.resumeFrom,
|
|
255
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
302
256
|
resourceLocationConfig: "azure-async-operation",
|
|
303
257
|
});
|
|
304
258
|
await poller.poll();
|
|
@@ -326,14 +280,19 @@ export class JobsImpl {
|
|
|
326
280
|
return this.client.sendOperationRequest(args, spec);
|
|
327
281
|
};
|
|
328
282
|
const sendOperationFn = async (args, spec) => {
|
|
329
|
-
var _a;
|
|
330
283
|
let currentRawResponse = undefined;
|
|
331
|
-
const providedCallback =
|
|
284
|
+
const providedCallback = args.options?.onResponse;
|
|
332
285
|
const callback = (rawResponse, flatResponse) => {
|
|
333
286
|
currentRawResponse = rawResponse;
|
|
334
|
-
providedCallback
|
|
287
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
288
|
+
};
|
|
289
|
+
const updatedArgs = {
|
|
290
|
+
...args,
|
|
291
|
+
options: {
|
|
292
|
+
...args.options,
|
|
293
|
+
onResponse: callback,
|
|
294
|
+
},
|
|
335
295
|
};
|
|
336
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
337
296
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
338
297
|
return {
|
|
339
298
|
flatResponse,
|
|
@@ -350,8 +309,8 @@ export class JobsImpl {
|
|
|
350
309
|
spec: deleteOperationSpec,
|
|
351
310
|
});
|
|
352
311
|
const poller = await createHttpPoller(lro, {
|
|
353
|
-
restoreFrom: options
|
|
354
|
-
intervalInMs: options
|
|
312
|
+
restoreFrom: options?.resumeFrom,
|
|
313
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
355
314
|
resourceLocationConfig: "location",
|
|
356
315
|
});
|
|
357
316
|
await poller.poll();
|
|
@@ -379,14 +338,19 @@ export class JobsImpl {
|
|
|
379
338
|
return this.client.sendOperationRequest(args, spec);
|
|
380
339
|
};
|
|
381
340
|
const sendOperationFn = async (args, spec) => {
|
|
382
|
-
var _a;
|
|
383
341
|
let currentRawResponse = undefined;
|
|
384
|
-
const providedCallback =
|
|
342
|
+
const providedCallback = args.options?.onResponse;
|
|
385
343
|
const callback = (rawResponse, flatResponse) => {
|
|
386
344
|
currentRawResponse = rawResponse;
|
|
387
|
-
providedCallback
|
|
345
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
346
|
+
};
|
|
347
|
+
const updatedArgs = {
|
|
348
|
+
...args,
|
|
349
|
+
options: {
|
|
350
|
+
...args.options,
|
|
351
|
+
onResponse: callback,
|
|
352
|
+
},
|
|
388
353
|
};
|
|
389
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
390
354
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
391
355
|
return {
|
|
392
356
|
flatResponse,
|
|
@@ -403,8 +367,8 @@ export class JobsImpl {
|
|
|
403
367
|
spec: updateOperationSpec,
|
|
404
368
|
});
|
|
405
369
|
const poller = await createHttpPoller(lro, {
|
|
406
|
-
restoreFrom: options
|
|
407
|
-
intervalInMs: options
|
|
370
|
+
restoreFrom: options?.resumeFrom,
|
|
371
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
408
372
|
});
|
|
409
373
|
await poller.poll();
|
|
410
374
|
return poller;
|
|
@@ -431,14 +395,19 @@ export class JobsImpl {
|
|
|
431
395
|
return this.client.sendOperationRequest(args, spec);
|
|
432
396
|
};
|
|
433
397
|
const sendOperationFn = async (args, spec) => {
|
|
434
|
-
var _a;
|
|
435
398
|
let currentRawResponse = undefined;
|
|
436
|
-
const providedCallback =
|
|
399
|
+
const providedCallback = args.options?.onResponse;
|
|
437
400
|
const callback = (rawResponse, flatResponse) => {
|
|
438
401
|
currentRawResponse = rawResponse;
|
|
439
|
-
providedCallback
|
|
402
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
403
|
+
};
|
|
404
|
+
const updatedArgs = {
|
|
405
|
+
...args,
|
|
406
|
+
options: {
|
|
407
|
+
...args.options,
|
|
408
|
+
onResponse: callback,
|
|
409
|
+
},
|
|
440
410
|
};
|
|
441
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
442
411
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
443
412
|
return {
|
|
444
413
|
flatResponse,
|
|
@@ -455,8 +424,8 @@ export class JobsImpl {
|
|
|
455
424
|
spec: startOperationSpec,
|
|
456
425
|
});
|
|
457
426
|
const poller = await createHttpPoller(lro, {
|
|
458
|
-
restoreFrom: options
|
|
459
|
-
intervalInMs: options
|
|
427
|
+
restoreFrom: options?.resumeFrom,
|
|
428
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
460
429
|
resourceLocationConfig: "location",
|
|
461
430
|
});
|
|
462
431
|
await poller.poll();
|
|
@@ -484,14 +453,19 @@ export class JobsImpl {
|
|
|
484
453
|
return this.client.sendOperationRequest(args, spec);
|
|
485
454
|
};
|
|
486
455
|
const sendOperationFn = async (args, spec) => {
|
|
487
|
-
var _a;
|
|
488
456
|
let currentRawResponse = undefined;
|
|
489
|
-
const providedCallback =
|
|
457
|
+
const providedCallback = args.options?.onResponse;
|
|
490
458
|
const callback = (rawResponse, flatResponse) => {
|
|
491
459
|
currentRawResponse = rawResponse;
|
|
492
|
-
providedCallback
|
|
460
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
461
|
+
};
|
|
462
|
+
const updatedArgs = {
|
|
463
|
+
...args,
|
|
464
|
+
options: {
|
|
465
|
+
...args.options,
|
|
466
|
+
onResponse: callback,
|
|
467
|
+
},
|
|
493
468
|
};
|
|
494
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
495
469
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
496
470
|
return {
|
|
497
471
|
flatResponse,
|
|
@@ -508,8 +482,8 @@ export class JobsImpl {
|
|
|
508
482
|
spec: stopExecutionOperationSpec,
|
|
509
483
|
});
|
|
510
484
|
const poller = await createHttpPoller(lro, {
|
|
511
|
-
restoreFrom: options
|
|
512
|
-
intervalInMs: options
|
|
485
|
+
restoreFrom: options?.resumeFrom,
|
|
486
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
513
487
|
resourceLocationConfig: "location",
|
|
514
488
|
});
|
|
515
489
|
await poller.poll();
|
|
@@ -537,14 +511,19 @@ export class JobsImpl {
|
|
|
537
511
|
return this.client.sendOperationRequest(args, spec);
|
|
538
512
|
};
|
|
539
513
|
const sendOperationFn = async (args, spec) => {
|
|
540
|
-
var _a;
|
|
541
514
|
let currentRawResponse = undefined;
|
|
542
|
-
const providedCallback =
|
|
515
|
+
const providedCallback = args.options?.onResponse;
|
|
543
516
|
const callback = (rawResponse, flatResponse) => {
|
|
544
517
|
currentRawResponse = rawResponse;
|
|
545
|
-
providedCallback
|
|
518
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
519
|
+
};
|
|
520
|
+
const updatedArgs = {
|
|
521
|
+
...args,
|
|
522
|
+
options: {
|
|
523
|
+
...args.options,
|
|
524
|
+
onResponse: callback,
|
|
525
|
+
},
|
|
546
526
|
};
|
|
547
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
548
527
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
549
528
|
return {
|
|
550
529
|
flatResponse,
|
|
@@ -561,8 +540,8 @@ export class JobsImpl {
|
|
|
561
540
|
spec: stopMultipleExecutionsOperationSpec,
|
|
562
541
|
});
|
|
563
542
|
const poller = await createHttpPoller(lro, {
|
|
564
|
-
restoreFrom: options
|
|
565
|
-
intervalInMs: options
|
|
543
|
+
restoreFrom: options?.resumeFrom,
|
|
544
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
566
545
|
resourceLocationConfig: "location",
|
|
567
546
|
});
|
|
568
547
|
await poller.poll();
|