@azure/arm-security 6.0.0-beta.1 → 6.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -5
- package/README.md +7 -7
- package/dist/index.js +2502 -1258
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/adaptiveApplicationControlsPutSample.js +6 -6
- package/dist-esm/samples-dev/adaptiveApplicationControlsPutSample.js.map +1 -1
- package/dist-esm/samples-dev/apiCollectionGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/apiCollectionGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/apiCollectionGetSample.js +32 -0
- package/dist-esm/samples-dev/apiCollectionGetSample.js.map +1 -0
- package/dist-esm/samples-dev/apiCollectionListSample.d.ts +2 -0
- package/dist-esm/samples-dev/apiCollectionListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/apiCollectionListSample.js +45 -0
- package/dist-esm/samples-dev/apiCollectionListSample.js.map +1 -0
- package/dist-esm/samples-dev/apiCollectionOffboardingDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/apiCollectionOffboardingDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/apiCollectionOffboardingDeleteSample.js +32 -0
- package/dist-esm/samples-dev/apiCollectionOffboardingDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/apiCollectionOnboardingCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/apiCollectionOnboardingCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/apiCollectionOnboardingCreateSample.js +32 -0
- package/dist-esm/samples-dev/apiCollectionOnboardingCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/connectorsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/securityConnectorsCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/securityConnectorsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/securityConnectorsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/securityConnectorsGetSample.js +1 -1
- package/dist-esm/samples-dev/securityConnectorsListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/securityConnectorsListSample.js +1 -1
- package/dist-esm/samples-dev/securityConnectorsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/securityContactsCreateSample.js +1 -1
- package/dist-esm/samples-dev/securityContactsCreateSample.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +151 -47
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +10 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +16 -5
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +227 -107
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +4 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +55 -1
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/aPICollection.d.ts +56 -0
- package/dist-esm/src/operations/aPICollection.d.ts.map +1 -0
- package/dist-esm/src/operations/aPICollection.js +191 -0
- package/dist-esm/src/operations/aPICollection.js.map +1 -0
- package/dist-esm/src/operations/aPICollectionOffboarding.d.ts +23 -0
- package/dist-esm/src/operations/aPICollectionOffboarding.d.ts.map +1 -0
- package/dist-esm/src/operations/aPICollectionOffboarding.js +56 -0
- package/dist-esm/src/operations/aPICollectionOffboarding.js.map +1 -0
- package/dist-esm/src/operations/aPICollectionOnboarding.d.ts +24 -0
- package/dist-esm/src/operations/aPICollectionOnboarding.d.ts.map +1 -0
- package/dist-esm/src/operations/aPICollectionOnboarding.js +58 -0
- package/dist-esm/src/operations/aPICollectionOnboarding.js.map +1 -0
- package/dist-esm/src/operations/adaptiveNetworkHardenings.d.ts.map +1 -1
- package/dist-esm/src/operations/adaptiveNetworkHardenings.js +19 -7
- package/dist-esm/src/operations/adaptiveNetworkHardenings.js.map +1 -1
- package/dist-esm/src/operations/alerts.d.ts.map +1 -1
- package/dist-esm/src/operations/alerts.js +73 -28
- package/dist-esm/src/operations/alerts.js.map +1 -1
- package/dist-esm/src/operations/alertsSuppressionRules.d.ts.map +1 -1
- package/dist-esm/src/operations/alertsSuppressionRules.js +19 -7
- package/dist-esm/src/operations/alertsSuppressionRules.js.map +1 -1
- package/dist-esm/src/operations/allowedConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/allowedConnections.js +37 -14
- package/dist-esm/src/operations/allowedConnections.js.map +1 -1
- package/dist-esm/src/operations/applications.d.ts.map +1 -1
- package/dist-esm/src/operations/applications.js +19 -7
- package/dist-esm/src/operations/applications.js.map +1 -1
- package/dist-esm/src/operations/assessments.d.ts.map +1 -1
- package/dist-esm/src/operations/assessments.js +19 -7
- package/dist-esm/src/operations/assessments.js.map +1 -1
- package/dist-esm/src/operations/assessmentsMetadata.d.ts.map +1 -1
- package/dist-esm/src/operations/assessmentsMetadata.js +37 -14
- package/dist-esm/src/operations/assessmentsMetadata.js.map +1 -1
- package/dist-esm/src/operations/autoProvisioningSettings.d.ts.map +1 -1
- package/dist-esm/src/operations/autoProvisioningSettings.js +19 -7
- package/dist-esm/src/operations/autoProvisioningSettings.js.map +1 -1
- package/dist-esm/src/operations/automations.d.ts.map +1 -1
- package/dist-esm/src/operations/automations.js +37 -14
- package/dist-esm/src/operations/automations.js.map +1 -1
- package/dist-esm/src/operations/complianceResults.d.ts.map +1 -1
- package/dist-esm/src/operations/complianceResults.js +19 -7
- package/dist-esm/src/operations/complianceResults.js.map +1 -1
- package/dist-esm/src/operations/compliances.d.ts.map +1 -1
- package/dist-esm/src/operations/compliances.js +19 -7
- package/dist-esm/src/operations/compliances.js.map +1 -1
- package/dist-esm/src/operations/connectors.d.ts.map +1 -1
- package/dist-esm/src/operations/connectors.js +19 -7
- package/dist-esm/src/operations/connectors.js.map +1 -1
- package/dist-esm/src/operations/customAssessmentAutomations.d.ts.map +1 -1
- package/dist-esm/src/operations/customAssessmentAutomations.js +37 -14
- package/dist-esm/src/operations/customAssessmentAutomations.js.map +1 -1
- package/dist-esm/src/operations/customEntityStoreAssignments.d.ts.map +1 -1
- package/dist-esm/src/operations/customEntityStoreAssignments.js +37 -14
- package/dist-esm/src/operations/customEntityStoreAssignments.js.map +1 -1
- package/dist-esm/src/operations/deviceSecurityGroups.d.ts.map +1 -1
- package/dist-esm/src/operations/deviceSecurityGroups.js +19 -7
- package/dist-esm/src/operations/deviceSecurityGroups.js.map +1 -1
- package/dist-esm/src/operations/discoveredSecuritySolutions.d.ts.map +1 -1
- package/dist-esm/src/operations/discoveredSecuritySolutions.js +37 -14
- package/dist-esm/src/operations/discoveredSecuritySolutions.js.map +1 -1
- package/dist-esm/src/operations/externalSecuritySolutions.d.ts.map +1 -1
- package/dist-esm/src/operations/externalSecuritySolutions.js +37 -14
- package/dist-esm/src/operations/externalSecuritySolutions.js.map +1 -1
- package/dist-esm/src/operations/governanceAssignments.d.ts.map +1 -1
- package/dist-esm/src/operations/governanceAssignments.js +19 -7
- package/dist-esm/src/operations/governanceAssignments.js.map +1 -1
- package/dist-esm/src/operations/governanceRuleOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/governanceRuleOperations.js +19 -7
- package/dist-esm/src/operations/governanceRuleOperations.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +3 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +3 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/informationProtectionPolicies.d.ts.map +1 -1
- package/dist-esm/src/operations/informationProtectionPolicies.js +19 -7
- package/dist-esm/src/operations/informationProtectionPolicies.js.map +1 -1
- package/dist-esm/src/operations/ingestionSettings.d.ts.map +1 -1
- package/dist-esm/src/operations/ingestionSettings.js +19 -7
- package/dist-esm/src/operations/ingestionSettings.js.map +1 -1
- package/dist-esm/src/operations/iotSecuritySolution.d.ts.map +1 -1
- package/dist-esm/src/operations/iotSecuritySolution.js +37 -14
- package/dist-esm/src/operations/iotSecuritySolution.js.map +1 -1
- package/dist-esm/src/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.d.ts.map +1 -1
- package/dist-esm/src/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.js +19 -7
- package/dist-esm/src/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.js.map +1 -1
- package/dist-esm/src/operations/iotSecuritySolutionsAnalyticsRecommendation.d.ts.map +1 -1
- package/dist-esm/src/operations/iotSecuritySolutionsAnalyticsRecommendation.js +19 -7
- package/dist-esm/src/operations/iotSecuritySolutionsAnalyticsRecommendation.js.map +1 -1
- package/dist-esm/src/operations/jitNetworkAccessPolicies.d.ts.map +1 -1
- package/dist-esm/src/operations/jitNetworkAccessPolicies.js +73 -28
- package/dist-esm/src/operations/jitNetworkAccessPolicies.js.map +1 -1
- package/dist-esm/src/operations/locations.d.ts.map +1 -1
- package/dist-esm/src/operations/locations.js +19 -7
- package/dist-esm/src/operations/locations.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -7
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/regulatoryComplianceAssessments.d.ts.map +1 -1
- package/dist-esm/src/operations/regulatoryComplianceAssessments.js +19 -7
- package/dist-esm/src/operations/regulatoryComplianceAssessments.js.map +1 -1
- package/dist-esm/src/operations/regulatoryComplianceControls.d.ts.map +1 -1
- package/dist-esm/src/operations/regulatoryComplianceControls.js +19 -7
- package/dist-esm/src/operations/regulatoryComplianceControls.js.map +1 -1
- package/dist-esm/src/operations/regulatoryComplianceStandards.d.ts.map +1 -1
- package/dist-esm/src/operations/regulatoryComplianceStandards.js +19 -7
- package/dist-esm/src/operations/regulatoryComplianceStandards.js.map +1 -1
- package/dist-esm/src/operations/secureScoreControlDefinitions.d.ts.map +1 -1
- package/dist-esm/src/operations/secureScoreControlDefinitions.js +37 -14
- package/dist-esm/src/operations/secureScoreControlDefinitions.js.map +1 -1
- package/dist-esm/src/operations/secureScoreControls.d.ts.map +1 -1
- package/dist-esm/src/operations/secureScoreControls.js +37 -14
- package/dist-esm/src/operations/secureScoreControls.js.map +1 -1
- package/dist-esm/src/operations/secureScores.d.ts.map +1 -1
- package/dist-esm/src/operations/secureScores.js +19 -7
- package/dist-esm/src/operations/secureScores.js.map +1 -1
- package/dist-esm/src/operations/securityConnectorApplications.d.ts.map +1 -1
- package/dist-esm/src/operations/securityConnectorApplications.js +19 -7
- package/dist-esm/src/operations/securityConnectorApplications.js.map +1 -1
- package/dist-esm/src/operations/securityConnectorGovernanceRule.d.ts.map +1 -1
- package/dist-esm/src/operations/securityConnectorGovernanceRule.js +19 -7
- package/dist-esm/src/operations/securityConnectorGovernanceRule.js.map +1 -1
- package/dist-esm/src/operations/securityConnectors.d.ts.map +1 -1
- package/dist-esm/src/operations/securityConnectors.js +37 -14
- package/dist-esm/src/operations/securityConnectors.js.map +1 -1
- package/dist-esm/src/operations/securityContacts.d.ts.map +1 -1
- package/dist-esm/src/operations/securityContacts.js +19 -7
- package/dist-esm/src/operations/securityContacts.js.map +1 -1
- package/dist-esm/src/operations/securitySolutions.d.ts.map +1 -1
- package/dist-esm/src/operations/securitySolutions.js +19 -7
- package/dist-esm/src/operations/securitySolutions.js.map +1 -1
- package/dist-esm/src/operations/settings.d.ts.map +1 -1
- package/dist-esm/src/operations/settings.js +19 -7
- package/dist-esm/src/operations/settings.js.map +1 -1
- package/dist-esm/src/operations/softwareInventories.d.ts.map +1 -1
- package/dist-esm/src/operations/softwareInventories.js +37 -14
- package/dist-esm/src/operations/softwareInventories.js.map +1 -1
- package/dist-esm/src/operations/subAssessments.d.ts.map +1 -1
- package/dist-esm/src/operations/subAssessments.js +37 -14
- package/dist-esm/src/operations/subAssessments.js.map +1 -1
- package/dist-esm/src/operations/tasks.d.ts.map +1 -1
- package/dist-esm/src/operations/tasks.js +55 -21
- package/dist-esm/src/operations/tasks.js.map +1 -1
- package/dist-esm/src/operations/topology.d.ts.map +1 -1
- package/dist-esm/src/operations/topology.js +37 -14
- package/dist-esm/src/operations/topology.js.map +1 -1
- package/dist-esm/src/operations/workspaceSettings.d.ts.map +1 -1
- package/dist-esm/src/operations/workspaceSettings.js +19 -7
- package/dist-esm/src/operations/workspaceSettings.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/aPICollection.d.ts +28 -0
- package/dist-esm/src/operationsInterfaces/aPICollection.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/aPICollection.js +9 -0
- package/dist-esm/src/operationsInterfaces/aPICollection.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/aPICollectionOffboarding.d.ts +15 -0
- package/dist-esm/src/operationsInterfaces/aPICollectionOffboarding.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/aPICollectionOffboarding.js +9 -0
- package/dist-esm/src/operationsInterfaces/aPICollectionOffboarding.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/aPICollectionOnboarding.d.ts +16 -0
- package/dist-esm/src/operationsInterfaces/aPICollectionOnboarding.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/aPICollectionOnboarding.js +9 -0
- package/dist-esm/src/operationsInterfaces/aPICollectionOnboarding.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +3 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/src/securityCenter.d.ts +4 -1
- package/dist-esm/src/securityCenter.d.ts.map +1 -1
- package/dist-esm/src/securityCenter.js +8 -8
- package/dist-esm/src/securityCenter.js.map +1 -1
- package/package.json +6 -5
- package/review/arm-security.api.md +139 -35
- package/src/index.ts +1 -0
- package/src/models/index.ts +171 -49
- package/src/models/mappers.ts +251 -117
- package/src/models/parameters.ts +59 -1
- package/src/operations/aPICollection.ts +249 -0
- package/src/operations/aPICollectionOffboarding.ts +73 -0
- package/src/operations/aPICollectionOnboarding.ts +78 -0
- package/src/operations/adaptiveNetworkHardenings.ts +28 -14
- package/src/operations/alerts.ts +91 -39
- package/src/operations/alertsSuppressionRules.ts +21 -8
- package/src/operations/allowedConnections.ts +41 -16
- package/src/operations/applications.ts +21 -8
- package/src/operations/assessments.ts +21 -8
- package/src/operations/assessmentsMetadata.ts +42 -17
- package/src/operations/autoProvisioningSettings.ts +21 -8
- package/src/operations/automations.ts +45 -16
- package/src/operations/complianceResults.ts +21 -8
- package/src/operations/compliances.ts +21 -8
- package/src/operations/connectors.ts +21 -8
- package/src/operations/customAssessmentAutomations.ts +46 -17
- package/src/operations/customEntityStoreAssignments.ts +46 -17
- package/src/operations/deviceSecurityGroups.ts +21 -8
- package/src/operations/discoveredSecuritySolutions.ts +41 -16
- package/src/operations/externalSecuritySolutions.ts +41 -16
- package/src/operations/governanceAssignments.ts +21 -8
- package/src/operations/governanceRuleOperations.ts +21 -8
- package/src/operations/index.ts +3 -0
- package/src/operations/informationProtectionPolicies.ts +22 -9
- package/src/operations/ingestionSettings.ts +21 -8
- package/src/operations/iotSecuritySolution.ts +45 -16
- package/src/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.ts +26 -8
- package/src/operations/iotSecuritySolutionsAnalyticsRecommendation.ts +27 -9
- package/src/operations/jitNetworkAccessPolicies.ts +90 -36
- package/src/operations/locations.ts +21 -8
- package/src/operations/operations.ts +21 -8
- package/src/operations/regulatoryComplianceAssessments.ts +26 -12
- package/src/operations/regulatoryComplianceControls.ts +25 -8
- package/src/operations/regulatoryComplianceStandards.ts +21 -8
- package/src/operations/secureScoreControlDefinitions.ts +41 -16
- package/src/operations/secureScoreControls.ts +45 -16
- package/src/operations/secureScores.ts +21 -8
- package/src/operations/securityConnectorApplications.ts +26 -12
- package/src/operations/securityConnectorGovernanceRule.ts +26 -12
- package/src/operations/securityConnectors.ts +45 -16
- package/src/operations/securityContacts.ts +21 -8
- package/src/operations/securitySolutions.ts +21 -8
- package/src/operations/settings.ts +21 -8
- package/src/operations/softwareInventories.ts +48 -22
- package/src/operations/subAssessments.ts +41 -16
- package/src/operations/tasks.ts +67 -29
- package/src/operations/topology.ts +41 -16
- package/src/operations/workspaceSettings.ts +21 -8
- package/src/operationsInterfaces/aPICollection.ts +51 -0
- package/src/operationsInterfaces/aPICollectionOffboarding.ts +28 -0
- package/src/operationsInterfaces/aPICollectionOnboarding.ts +32 -0
- package/src/operationsInterfaces/index.ts +3 -0
- package/src/pagingHelper.ts +39 -0
- package/src/securityCenter.ts +19 -8
- package/types/arm-security.d.ts +238 -52
- package/types/tsdoc-metadata.json +1 -1
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { SoftwareInventories } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,9 +17,9 @@ import {
|
|
|
16
17
|
Software,
|
|
17
18
|
SoftwareInventoriesListByExtendedResourceNextOptionalParams,
|
|
18
19
|
SoftwareInventoriesListByExtendedResourceOptionalParams,
|
|
20
|
+
SoftwareInventoriesListByExtendedResourceResponse,
|
|
19
21
|
SoftwareInventoriesListBySubscriptionNextOptionalParams,
|
|
20
22
|
SoftwareInventoriesListBySubscriptionOptionalParams,
|
|
21
|
-
SoftwareInventoriesListByExtendedResourceResponse,
|
|
22
23
|
SoftwareInventoriesListBySubscriptionResponse,
|
|
23
24
|
SoftwareInventoriesGetOptionalParams,
|
|
24
25
|
SoftwareInventoriesGetResponse,
|
|
@@ -69,13 +70,17 @@ export class SoftwareInventoriesImpl implements SoftwareInventories {
|
|
|
69
70
|
[Symbol.asyncIterator]() {
|
|
70
71
|
return this;
|
|
71
72
|
},
|
|
72
|
-
byPage: () => {
|
|
73
|
+
byPage: (settings?: PageSettings) => {
|
|
74
|
+
if (settings?.maxPageSize) {
|
|
75
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
76
|
+
}
|
|
73
77
|
return this.listByExtendedResourcePagingPage(
|
|
74
78
|
resourceGroupName,
|
|
75
79
|
resourceNamespace,
|
|
76
80
|
resourceType,
|
|
77
81
|
resourceName,
|
|
78
|
-
options
|
|
82
|
+
options,
|
|
83
|
+
settings
|
|
79
84
|
);
|
|
80
85
|
}
|
|
81
86
|
};
|
|
@@ -86,17 +91,24 @@ export class SoftwareInventoriesImpl implements SoftwareInventories {
|
|
|
86
91
|
resourceNamespace: string,
|
|
87
92
|
resourceType: string,
|
|
88
93
|
resourceName: string,
|
|
89
|
-
options?: SoftwareInventoriesListByExtendedResourceOptionalParams
|
|
94
|
+
options?: SoftwareInventoriesListByExtendedResourceOptionalParams,
|
|
95
|
+
settings?: PageSettings
|
|
90
96
|
): AsyncIterableIterator<Software[]> {
|
|
91
|
-
let result
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
let result: SoftwareInventoriesListByExtendedResourceResponse;
|
|
98
|
+
let continuationToken = settings?.continuationToken;
|
|
99
|
+
if (!continuationToken) {
|
|
100
|
+
result = await this._listByExtendedResource(
|
|
101
|
+
resourceGroupName,
|
|
102
|
+
resourceNamespace,
|
|
103
|
+
resourceType,
|
|
104
|
+
resourceName,
|
|
105
|
+
options
|
|
106
|
+
);
|
|
107
|
+
let page = result.value || [];
|
|
108
|
+
continuationToken = result.nextLink;
|
|
109
|
+
setContinuationToken(page, continuationToken);
|
|
110
|
+
yield page;
|
|
111
|
+
}
|
|
100
112
|
while (continuationToken) {
|
|
101
113
|
result = await this._listByExtendedResourceNext(
|
|
102
114
|
resourceGroupName,
|
|
@@ -107,7 +119,9 @@ export class SoftwareInventoriesImpl implements SoftwareInventories {
|
|
|
107
119
|
options
|
|
108
120
|
);
|
|
109
121
|
continuationToken = result.nextLink;
|
|
110
|
-
|
|
122
|
+
let page = result.value || [];
|
|
123
|
+
setContinuationToken(page, continuationToken);
|
|
124
|
+
yield page;
|
|
111
125
|
}
|
|
112
126
|
}
|
|
113
127
|
|
|
@@ -144,22 +158,34 @@ export class SoftwareInventoriesImpl implements SoftwareInventories {
|
|
|
144
158
|
[Symbol.asyncIterator]() {
|
|
145
159
|
return this;
|
|
146
160
|
},
|
|
147
|
-
byPage: () => {
|
|
148
|
-
|
|
161
|
+
byPage: (settings?: PageSettings) => {
|
|
162
|
+
if (settings?.maxPageSize) {
|
|
163
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
164
|
+
}
|
|
165
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
149
166
|
}
|
|
150
167
|
};
|
|
151
168
|
}
|
|
152
169
|
|
|
153
170
|
private async *listBySubscriptionPagingPage(
|
|
154
|
-
options?: SoftwareInventoriesListBySubscriptionOptionalParams
|
|
171
|
+
options?: SoftwareInventoriesListBySubscriptionOptionalParams,
|
|
172
|
+
settings?: PageSettings
|
|
155
173
|
): AsyncIterableIterator<Software[]> {
|
|
156
|
-
let result
|
|
157
|
-
|
|
158
|
-
|
|
174
|
+
let result: SoftwareInventoriesListBySubscriptionResponse;
|
|
175
|
+
let continuationToken = settings?.continuationToken;
|
|
176
|
+
if (!continuationToken) {
|
|
177
|
+
result = await this._listBySubscription(options);
|
|
178
|
+
let page = result.value || [];
|
|
179
|
+
continuationToken = result.nextLink;
|
|
180
|
+
setContinuationToken(page, continuationToken);
|
|
181
|
+
yield page;
|
|
182
|
+
}
|
|
159
183
|
while (continuationToken) {
|
|
160
184
|
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
161
185
|
continuationToken = result.nextLink;
|
|
162
|
-
|
|
186
|
+
let page = result.value || [];
|
|
187
|
+
setContinuationToken(page, continuationToken);
|
|
188
|
+
yield page;
|
|
163
189
|
}
|
|
164
190
|
}
|
|
165
191
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { SubAssessments } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,9 +17,9 @@ import {
|
|
|
16
17
|
SecuritySubAssessment,
|
|
17
18
|
SubAssessmentsListAllNextOptionalParams,
|
|
18
19
|
SubAssessmentsListAllOptionalParams,
|
|
20
|
+
SubAssessmentsListAllResponse,
|
|
19
21
|
SubAssessmentsListNextOptionalParams,
|
|
20
22
|
SubAssessmentsListOptionalParams,
|
|
21
|
-
SubAssessmentsListAllResponse,
|
|
22
23
|
SubAssessmentsListResponse,
|
|
23
24
|
SubAssessmentsGetOptionalParams,
|
|
24
25
|
SubAssessmentsGetResponse,
|
|
@@ -58,23 +59,35 @@ export class SubAssessmentsImpl implements SubAssessments {
|
|
|
58
59
|
[Symbol.asyncIterator]() {
|
|
59
60
|
return this;
|
|
60
61
|
},
|
|
61
|
-
byPage: () => {
|
|
62
|
-
|
|
62
|
+
byPage: (settings?: PageSettings) => {
|
|
63
|
+
if (settings?.maxPageSize) {
|
|
64
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
65
|
+
}
|
|
66
|
+
return this.listAllPagingPage(scope, options, settings);
|
|
63
67
|
}
|
|
64
68
|
};
|
|
65
69
|
}
|
|
66
70
|
|
|
67
71
|
private async *listAllPagingPage(
|
|
68
72
|
scope: string,
|
|
69
|
-
options?: SubAssessmentsListAllOptionalParams
|
|
73
|
+
options?: SubAssessmentsListAllOptionalParams,
|
|
74
|
+
settings?: PageSettings
|
|
70
75
|
): AsyncIterableIterator<SecuritySubAssessment[]> {
|
|
71
|
-
let result
|
|
72
|
-
|
|
73
|
-
|
|
76
|
+
let result: SubAssessmentsListAllResponse;
|
|
77
|
+
let continuationToken = settings?.continuationToken;
|
|
78
|
+
if (!continuationToken) {
|
|
79
|
+
result = await this._listAll(scope, options);
|
|
80
|
+
let page = result.value || [];
|
|
81
|
+
continuationToken = result.nextLink;
|
|
82
|
+
setContinuationToken(page, continuationToken);
|
|
83
|
+
yield page;
|
|
84
|
+
}
|
|
74
85
|
while (continuationToken) {
|
|
75
86
|
result = await this._listAllNext(scope, continuationToken, options);
|
|
76
87
|
continuationToken = result.nextLink;
|
|
77
|
-
|
|
88
|
+
let page = result.value || [];
|
|
89
|
+
setContinuationToken(page, continuationToken);
|
|
90
|
+
yield page;
|
|
78
91
|
}
|
|
79
92
|
}
|
|
80
93
|
|
|
@@ -108,8 +121,11 @@ export class SubAssessmentsImpl implements SubAssessments {
|
|
|
108
121
|
[Symbol.asyncIterator]() {
|
|
109
122
|
return this;
|
|
110
123
|
},
|
|
111
|
-
byPage: () => {
|
|
112
|
-
|
|
124
|
+
byPage: (settings?: PageSettings) => {
|
|
125
|
+
if (settings?.maxPageSize) {
|
|
126
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
127
|
+
}
|
|
128
|
+
return this.listPagingPage(scope, assessmentName, options, settings);
|
|
113
129
|
}
|
|
114
130
|
};
|
|
115
131
|
}
|
|
@@ -117,11 +133,18 @@ export class SubAssessmentsImpl implements SubAssessments {
|
|
|
117
133
|
private async *listPagingPage(
|
|
118
134
|
scope: string,
|
|
119
135
|
assessmentName: string,
|
|
120
|
-
options?: SubAssessmentsListOptionalParams
|
|
136
|
+
options?: SubAssessmentsListOptionalParams,
|
|
137
|
+
settings?: PageSettings
|
|
121
138
|
): AsyncIterableIterator<SecuritySubAssessment[]> {
|
|
122
|
-
let result
|
|
123
|
-
|
|
124
|
-
|
|
139
|
+
let result: SubAssessmentsListResponse;
|
|
140
|
+
let continuationToken = settings?.continuationToken;
|
|
141
|
+
if (!continuationToken) {
|
|
142
|
+
result = await this._list(scope, assessmentName, options);
|
|
143
|
+
let page = result.value || [];
|
|
144
|
+
continuationToken = result.nextLink;
|
|
145
|
+
setContinuationToken(page, continuationToken);
|
|
146
|
+
yield page;
|
|
147
|
+
}
|
|
125
148
|
while (continuationToken) {
|
|
126
149
|
result = await this._listNext(
|
|
127
150
|
scope,
|
|
@@ -130,7 +153,9 @@ export class SubAssessmentsImpl implements SubAssessments {
|
|
|
130
153
|
options
|
|
131
154
|
);
|
|
132
155
|
continuationToken = result.nextLink;
|
|
133
|
-
|
|
156
|
+
let page = result.value || [];
|
|
157
|
+
setContinuationToken(page, continuationToken);
|
|
158
|
+
yield page;
|
|
134
159
|
}
|
|
135
160
|
}
|
|
136
161
|
|
package/src/operations/tasks.ts
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { Tasks } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,17 +17,17 @@ import {
|
|
|
16
17
|
SecurityTask,
|
|
17
18
|
TasksListNextOptionalParams,
|
|
18
19
|
TasksListOptionalParams,
|
|
20
|
+
TasksListResponse,
|
|
19
21
|
TasksListByHomeRegionNextOptionalParams,
|
|
20
22
|
TasksListByHomeRegionOptionalParams,
|
|
23
|
+
TasksListByHomeRegionResponse,
|
|
21
24
|
TasksListByResourceGroupNextOptionalParams,
|
|
22
25
|
TasksListByResourceGroupOptionalParams,
|
|
23
|
-
|
|
24
|
-
TasksListByHomeRegionResponse,
|
|
26
|
+
TasksListByResourceGroupResponse,
|
|
25
27
|
TasksGetSubscriptionLevelTaskOptionalParams,
|
|
26
28
|
TasksGetSubscriptionLevelTaskResponse,
|
|
27
29
|
TaskUpdateActionType,
|
|
28
30
|
TasksUpdateSubscriptionLevelTaskStateOptionalParams,
|
|
29
|
-
TasksListByResourceGroupResponse,
|
|
30
31
|
TasksGetResourceGroupLevelTaskOptionalParams,
|
|
31
32
|
TasksGetResourceGroupLevelTaskResponse,
|
|
32
33
|
TasksUpdateResourceGroupLevelTaskStateOptionalParams,
|
|
@@ -63,22 +64,34 @@ export class TasksImpl implements Tasks {
|
|
|
63
64
|
[Symbol.asyncIterator]() {
|
|
64
65
|
return this;
|
|
65
66
|
},
|
|
66
|
-
byPage: () => {
|
|
67
|
-
|
|
67
|
+
byPage: (settings?: PageSettings) => {
|
|
68
|
+
if (settings?.maxPageSize) {
|
|
69
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
70
|
+
}
|
|
71
|
+
return this.listPagingPage(options, settings);
|
|
68
72
|
}
|
|
69
73
|
};
|
|
70
74
|
}
|
|
71
75
|
|
|
72
76
|
private async *listPagingPage(
|
|
73
|
-
options?: TasksListOptionalParams
|
|
77
|
+
options?: TasksListOptionalParams,
|
|
78
|
+
settings?: PageSettings
|
|
74
79
|
): AsyncIterableIterator<SecurityTask[]> {
|
|
75
|
-
let result
|
|
76
|
-
|
|
77
|
-
|
|
80
|
+
let result: TasksListResponse;
|
|
81
|
+
let continuationToken = settings?.continuationToken;
|
|
82
|
+
if (!continuationToken) {
|
|
83
|
+
result = await this._list(options);
|
|
84
|
+
let page = result.value || [];
|
|
85
|
+
continuationToken = result.nextLink;
|
|
86
|
+
setContinuationToken(page, continuationToken);
|
|
87
|
+
yield page;
|
|
88
|
+
}
|
|
78
89
|
while (continuationToken) {
|
|
79
90
|
result = await this._listNext(continuationToken, options);
|
|
80
91
|
continuationToken = result.nextLink;
|
|
81
|
-
|
|
92
|
+
let page = result.value || [];
|
|
93
|
+
setContinuationToken(page, continuationToken);
|
|
94
|
+
yield page;
|
|
82
95
|
}
|
|
83
96
|
}
|
|
84
97
|
|
|
@@ -108,19 +121,29 @@ export class TasksImpl implements Tasks {
|
|
|
108
121
|
[Symbol.asyncIterator]() {
|
|
109
122
|
return this;
|
|
110
123
|
},
|
|
111
|
-
byPage: () => {
|
|
112
|
-
|
|
124
|
+
byPage: (settings?: PageSettings) => {
|
|
125
|
+
if (settings?.maxPageSize) {
|
|
126
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
127
|
+
}
|
|
128
|
+
return this.listByHomeRegionPagingPage(ascLocation, options, settings);
|
|
113
129
|
}
|
|
114
130
|
};
|
|
115
131
|
}
|
|
116
132
|
|
|
117
133
|
private async *listByHomeRegionPagingPage(
|
|
118
134
|
ascLocation: string,
|
|
119
|
-
options?: TasksListByHomeRegionOptionalParams
|
|
135
|
+
options?: TasksListByHomeRegionOptionalParams,
|
|
136
|
+
settings?: PageSettings
|
|
120
137
|
): AsyncIterableIterator<SecurityTask[]> {
|
|
121
|
-
let result
|
|
122
|
-
|
|
123
|
-
|
|
138
|
+
let result: TasksListByHomeRegionResponse;
|
|
139
|
+
let continuationToken = settings?.continuationToken;
|
|
140
|
+
if (!continuationToken) {
|
|
141
|
+
result = await this._listByHomeRegion(ascLocation, options);
|
|
142
|
+
let page = result.value || [];
|
|
143
|
+
continuationToken = result.nextLink;
|
|
144
|
+
setContinuationToken(page, continuationToken);
|
|
145
|
+
yield page;
|
|
146
|
+
}
|
|
124
147
|
while (continuationToken) {
|
|
125
148
|
result = await this._listByHomeRegionNext(
|
|
126
149
|
ascLocation,
|
|
@@ -128,7 +151,9 @@ export class TasksImpl implements Tasks {
|
|
|
128
151
|
options
|
|
129
152
|
);
|
|
130
153
|
continuationToken = result.nextLink;
|
|
131
|
-
|
|
154
|
+
let page = result.value || [];
|
|
155
|
+
setContinuationToken(page, continuationToken);
|
|
156
|
+
yield page;
|
|
132
157
|
}
|
|
133
158
|
}
|
|
134
159
|
|
|
@@ -169,11 +194,15 @@ export class TasksImpl implements Tasks {
|
|
|
169
194
|
[Symbol.asyncIterator]() {
|
|
170
195
|
return this;
|
|
171
196
|
},
|
|
172
|
-
byPage: () => {
|
|
197
|
+
byPage: (settings?: PageSettings) => {
|
|
198
|
+
if (settings?.maxPageSize) {
|
|
199
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
200
|
+
}
|
|
173
201
|
return this.listByResourceGroupPagingPage(
|
|
174
202
|
resourceGroupName,
|
|
175
203
|
ascLocation,
|
|
176
|
-
options
|
|
204
|
+
options,
|
|
205
|
+
settings
|
|
177
206
|
);
|
|
178
207
|
}
|
|
179
208
|
};
|
|
@@ -182,15 +211,22 @@ export class TasksImpl implements Tasks {
|
|
|
182
211
|
private async *listByResourceGroupPagingPage(
|
|
183
212
|
resourceGroupName: string,
|
|
184
213
|
ascLocation: string,
|
|
185
|
-
options?: TasksListByResourceGroupOptionalParams
|
|
214
|
+
options?: TasksListByResourceGroupOptionalParams,
|
|
215
|
+
settings?: PageSettings
|
|
186
216
|
): AsyncIterableIterator<SecurityTask[]> {
|
|
187
|
-
let result
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
217
|
+
let result: TasksListByResourceGroupResponse;
|
|
218
|
+
let continuationToken = settings?.continuationToken;
|
|
219
|
+
if (!continuationToken) {
|
|
220
|
+
result = await this._listByResourceGroup(
|
|
221
|
+
resourceGroupName,
|
|
222
|
+
ascLocation,
|
|
223
|
+
options
|
|
224
|
+
);
|
|
225
|
+
let page = result.value || [];
|
|
226
|
+
continuationToken = result.nextLink;
|
|
227
|
+
setContinuationToken(page, continuationToken);
|
|
228
|
+
yield page;
|
|
229
|
+
}
|
|
194
230
|
while (continuationToken) {
|
|
195
231
|
result = await this._listByResourceGroupNext(
|
|
196
232
|
resourceGroupName,
|
|
@@ -199,7 +235,9 @@ export class TasksImpl implements Tasks {
|
|
|
199
235
|
options
|
|
200
236
|
);
|
|
201
237
|
continuationToken = result.nextLink;
|
|
202
|
-
|
|
238
|
+
let page = result.value || [];
|
|
239
|
+
setContinuationToken(page, continuationToken);
|
|
240
|
+
yield page;
|
|
203
241
|
}
|
|
204
242
|
}
|
|
205
243
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { Topology } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,9 +17,9 @@ import {
|
|
|
16
17
|
TopologyResource,
|
|
17
18
|
TopologyListNextOptionalParams,
|
|
18
19
|
TopologyListOptionalParams,
|
|
20
|
+
TopologyListResponse,
|
|
19
21
|
TopologyListByHomeRegionNextOptionalParams,
|
|
20
22
|
TopologyListByHomeRegionOptionalParams,
|
|
21
|
-
TopologyListResponse,
|
|
22
23
|
TopologyListByHomeRegionResponse,
|
|
23
24
|
TopologyGetOptionalParams,
|
|
24
25
|
TopologyGetResponse,
|
|
@@ -54,22 +55,34 @@ export class TopologyImpl implements Topology {
|
|
|
54
55
|
[Symbol.asyncIterator]() {
|
|
55
56
|
return this;
|
|
56
57
|
},
|
|
57
|
-
byPage: () => {
|
|
58
|
-
|
|
58
|
+
byPage: (settings?: PageSettings) => {
|
|
59
|
+
if (settings?.maxPageSize) {
|
|
60
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
61
|
+
}
|
|
62
|
+
return this.listPagingPage(options, settings);
|
|
59
63
|
}
|
|
60
64
|
};
|
|
61
65
|
}
|
|
62
66
|
|
|
63
67
|
private async *listPagingPage(
|
|
64
|
-
options?: TopologyListOptionalParams
|
|
68
|
+
options?: TopologyListOptionalParams,
|
|
69
|
+
settings?: PageSettings
|
|
65
70
|
): AsyncIterableIterator<TopologyResource[]> {
|
|
66
|
-
let result
|
|
67
|
-
|
|
68
|
-
|
|
71
|
+
let result: TopologyListResponse;
|
|
72
|
+
let continuationToken = settings?.continuationToken;
|
|
73
|
+
if (!continuationToken) {
|
|
74
|
+
result = await this._list(options);
|
|
75
|
+
let page = result.value || [];
|
|
76
|
+
continuationToken = result.nextLink;
|
|
77
|
+
setContinuationToken(page, continuationToken);
|
|
78
|
+
yield page;
|
|
79
|
+
}
|
|
69
80
|
while (continuationToken) {
|
|
70
81
|
result = await this._listNext(continuationToken, options);
|
|
71
82
|
continuationToken = result.nextLink;
|
|
72
|
-
|
|
83
|
+
let page = result.value || [];
|
|
84
|
+
setContinuationToken(page, continuationToken);
|
|
85
|
+
yield page;
|
|
73
86
|
}
|
|
74
87
|
}
|
|
75
88
|
|
|
@@ -99,19 +112,29 @@ export class TopologyImpl implements Topology {
|
|
|
99
112
|
[Symbol.asyncIterator]() {
|
|
100
113
|
return this;
|
|
101
114
|
},
|
|
102
|
-
byPage: () => {
|
|
103
|
-
|
|
115
|
+
byPage: (settings?: PageSettings) => {
|
|
116
|
+
if (settings?.maxPageSize) {
|
|
117
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
118
|
+
}
|
|
119
|
+
return this.listByHomeRegionPagingPage(ascLocation, options, settings);
|
|
104
120
|
}
|
|
105
121
|
};
|
|
106
122
|
}
|
|
107
123
|
|
|
108
124
|
private async *listByHomeRegionPagingPage(
|
|
109
125
|
ascLocation: string,
|
|
110
|
-
options?: TopologyListByHomeRegionOptionalParams
|
|
126
|
+
options?: TopologyListByHomeRegionOptionalParams,
|
|
127
|
+
settings?: PageSettings
|
|
111
128
|
): AsyncIterableIterator<TopologyResource[]> {
|
|
112
|
-
let result
|
|
113
|
-
|
|
114
|
-
|
|
129
|
+
let result: TopologyListByHomeRegionResponse;
|
|
130
|
+
let continuationToken = settings?.continuationToken;
|
|
131
|
+
if (!continuationToken) {
|
|
132
|
+
result = await this._listByHomeRegion(ascLocation, options);
|
|
133
|
+
let page = result.value || [];
|
|
134
|
+
continuationToken = result.nextLink;
|
|
135
|
+
setContinuationToken(page, continuationToken);
|
|
136
|
+
yield page;
|
|
137
|
+
}
|
|
115
138
|
while (continuationToken) {
|
|
116
139
|
result = await this._listByHomeRegionNext(
|
|
117
140
|
ascLocation,
|
|
@@ -119,7 +142,9 @@ export class TopologyImpl implements Topology {
|
|
|
119
142
|
options
|
|
120
143
|
);
|
|
121
144
|
continuationToken = result.nextLink;
|
|
122
|
-
|
|
145
|
+
let page = result.value || [];
|
|
146
|
+
setContinuationToken(page, continuationToken);
|
|
147
|
+
yield page;
|
|
123
148
|
}
|
|
124
149
|
}
|
|
125
150
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { WorkspaceSettings } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -56,22 +57,34 @@ export class WorkspaceSettingsImpl implements WorkspaceSettings {
|
|
|
56
57
|
[Symbol.asyncIterator]() {
|
|
57
58
|
return this;
|
|
58
59
|
},
|
|
59
|
-
byPage: () => {
|
|
60
|
-
|
|
60
|
+
byPage: (settings?: PageSettings) => {
|
|
61
|
+
if (settings?.maxPageSize) {
|
|
62
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
63
|
+
}
|
|
64
|
+
return this.listPagingPage(options, settings);
|
|
61
65
|
}
|
|
62
66
|
};
|
|
63
67
|
}
|
|
64
68
|
|
|
65
69
|
private async *listPagingPage(
|
|
66
|
-
options?: WorkspaceSettingsListOptionalParams
|
|
70
|
+
options?: WorkspaceSettingsListOptionalParams,
|
|
71
|
+
settings?: PageSettings
|
|
67
72
|
): AsyncIterableIterator<WorkspaceSetting[]> {
|
|
68
|
-
let result
|
|
69
|
-
|
|
70
|
-
|
|
73
|
+
let result: WorkspaceSettingsListResponse;
|
|
74
|
+
let continuationToken = settings?.continuationToken;
|
|
75
|
+
if (!continuationToken) {
|
|
76
|
+
result = await this._list(options);
|
|
77
|
+
let page = result.value || [];
|
|
78
|
+
continuationToken = result.nextLink;
|
|
79
|
+
setContinuationToken(page, continuationToken);
|
|
80
|
+
yield page;
|
|
81
|
+
}
|
|
71
82
|
while (continuationToken) {
|
|
72
83
|
result = await this._listNext(continuationToken, options);
|
|
73
84
|
continuationToken = result.nextLink;
|
|
74
|
-
|
|
85
|
+
let page = result.value || [];
|
|
86
|
+
setContinuationToken(page, continuationToken);
|
|
87
|
+
yield page;
|
|
75
88
|
}
|
|
76
89
|
}
|
|
77
90
|
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import {
|
|
11
|
+
ApiCollectionResponse,
|
|
12
|
+
APICollectionListOptionalParams,
|
|
13
|
+
APICollectionGetOptionalParams,
|
|
14
|
+
APICollectionGetResponse
|
|
15
|
+
} from "../models";
|
|
16
|
+
|
|
17
|
+
/// <reference lib="esnext.asynciterable" />
|
|
18
|
+
/** Interface representing a APICollection. */
|
|
19
|
+
export interface APICollection {
|
|
20
|
+
/**
|
|
21
|
+
* Gets a list of Azure API Management APIs that have been onboarded to Defender for APIs. If an Azure
|
|
22
|
+
* API Management API is onboarded to Defender for APIs, the system will monitor the operations within
|
|
23
|
+
* the Azure API Management API for intrusive behaviors and provide alerts for attacks that have been
|
|
24
|
+
* detected.
|
|
25
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
26
|
+
* @param serviceName The name of the API Management service.
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
list(
|
|
30
|
+
resourceGroupName: string,
|
|
31
|
+
serviceName: string,
|
|
32
|
+
options?: APICollectionListOptionalParams
|
|
33
|
+
): PagedAsyncIterableIterator<ApiCollectionResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Gets an Azure API Management API if it has been onboarded to Defender for APIs. If an Azure API
|
|
36
|
+
* Management API is onboarded to Defender for APIs, the system will monitor the operations within the
|
|
37
|
+
* Azure API Management API for intrusive behaviors and provide alerts for attacks that have been
|
|
38
|
+
* detected.
|
|
39
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
40
|
+
* @param serviceName The name of the API Management service.
|
|
41
|
+
* @param apiCollectionId A string representing the apiCollections resource within the
|
|
42
|
+
* Microsoft.Security provider namespace. This string matches the Azure API Management API name.
|
|
43
|
+
* @param options The options parameters.
|
|
44
|
+
*/
|
|
45
|
+
get(
|
|
46
|
+
resourceGroupName: string,
|
|
47
|
+
serviceName: string,
|
|
48
|
+
apiCollectionId: string,
|
|
49
|
+
options?: APICollectionGetOptionalParams
|
|
50
|
+
): Promise<APICollectionGetResponse>;
|
|
51
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { APICollectionOffboardingDeleteOptionalParams } from "../models";
|
|
10
|
+
|
|
11
|
+
/** Interface representing a APICollectionOffboarding. */
|
|
12
|
+
export interface APICollectionOffboarding {
|
|
13
|
+
/**
|
|
14
|
+
* Offboard an Azure API Management API from Defender for APIs. The system will stop monitoring the
|
|
15
|
+
* operations within the Azure API Management API for intrusive behaviors.
|
|
16
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
17
|
+
* @param serviceName The name of the API Management service.
|
|
18
|
+
* @param apiCollectionId A string representing the apiCollections resource within the
|
|
19
|
+
* Microsoft.Security provider namespace. This string matches the Azure API Management API name.
|
|
20
|
+
* @param options The options parameters.
|
|
21
|
+
*/
|
|
22
|
+
delete(
|
|
23
|
+
resourceGroupName: string,
|
|
24
|
+
serviceName: string,
|
|
25
|
+
apiCollectionId: string,
|
|
26
|
+
options?: APICollectionOffboardingDeleteOptionalParams
|
|
27
|
+
): Promise<void>;
|
|
28
|
+
}
|