@azure/arm-appcomplianceautomation 1.0.0-beta.1 → 1.0.0
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 +4 -2
- package/LICENSE +1 -1
- package/README.md +3 -4
- package/dist/index.js +4576 -1487
- 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/evidenceCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/evidenceCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/evidenceCreateOrUpdateSample.js +44 -0
- package/dist-esm/samples-dev/evidenceCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/evidenceDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/evidenceDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/evidenceDeleteSample.js +37 -0
- package/dist-esm/samples-dev/evidenceDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/evidenceDownloadSample.d.ts +2 -0
- package/dist-esm/samples-dev/evidenceDownloadSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/evidenceDownloadSample.js +40 -0
- package/dist-esm/samples-dev/evidenceDownloadSample.js.map +1 -0
- package/dist-esm/samples-dev/evidenceGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/evidenceGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/evidenceGetSample.js +37 -0
- package/dist-esm/samples-dev/evidenceGetSample.js.map +1 -0
- package/dist-esm/samples-dev/evidenceListByReportSample.d.ts +2 -0
- package/dist-esm/samples-dev/evidenceListByReportSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/evidenceListByReportSample.js +52 -0
- package/dist-esm/samples-dev/evidenceListByReportSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +17 -8
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/providerActionsCheckNameAvailabilitySample.d.ts +2 -0
- package/dist-esm/samples-dev/providerActionsCheckNameAvailabilitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/providerActionsCheckNameAvailabilitySample.js +38 -0
- package/dist-esm/samples-dev/providerActionsCheckNameAvailabilitySample.js.map +1 -0
- package/dist-esm/samples-dev/providerActionsGetCollectionCountSample.d.ts +2 -0
- package/dist-esm/samples-dev/providerActionsGetCollectionCountSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/providerActionsGetCollectionCountSample.js +37 -0
- package/dist-esm/samples-dev/providerActionsGetCollectionCountSample.js.map +1 -0
- package/dist-esm/samples-dev/providerActionsGetOverviewStatusSample.d.ts +2 -0
- package/dist-esm/samples-dev/providerActionsGetOverviewStatusSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/providerActionsGetOverviewStatusSample.js +37 -0
- package/dist-esm/samples-dev/providerActionsGetOverviewStatusSample.js.map +1 -0
- package/dist-esm/samples-dev/providerActionsListInUseStorageAccountsSample.d.ts +2 -0
- package/dist-esm/samples-dev/providerActionsListInUseStorageAccountsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/providerActionsListInUseStorageAccountsSample.js +55 -0
- package/dist-esm/samples-dev/providerActionsListInUseStorageAccountsSample.js.map +1 -0
- package/dist-esm/samples-dev/providerActionsOnboardSample.d.ts +2 -0
- package/dist-esm/samples-dev/providerActionsOnboardSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/providerActionsOnboardSample.js +40 -0
- package/dist-esm/samples-dev/providerActionsOnboardSample.js.map +1 -0
- package/dist-esm/samples-dev/providerActionsTriggerEvaluationSample.d.ts +2 -0
- package/dist-esm/samples-dev/providerActionsTriggerEvaluationSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/providerActionsTriggerEvaluationSample.js +39 -0
- package/dist-esm/samples-dev/providerActionsTriggerEvaluationSample.js.map +1 -0
- package/dist-esm/samples-dev/reportCreateOrUpdateSample.js +27 -14
- package/dist-esm/samples-dev/reportCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/reportDeleteSample.js +9 -2
- package/dist-esm/samples-dev/reportDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/reportFixSample.d.ts +2 -0
- package/dist-esm/samples-dev/reportFixSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/reportFixSample.js +36 -0
- package/dist-esm/samples-dev/reportFixSample.js.map +1 -0
- package/dist-esm/samples-dev/reportGetSample.js +9 -2
- package/dist-esm/samples-dev/reportGetSample.js.map +1 -1
- package/dist-esm/samples-dev/reportGetScopingQuestionsSample.d.ts +2 -0
- package/dist-esm/samples-dev/reportGetScopingQuestionsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/reportGetScopingQuestionsSample.js +36 -0
- package/dist-esm/samples-dev/reportGetScopingQuestionsSample.js.map +1 -0
- package/dist-esm/samples-dev/reportListSample.d.ts +2 -0
- package/dist-esm/samples-dev/reportListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{reportsListSample.js → reportListSample.js} +19 -10
- package/dist-esm/samples-dev/reportListSample.js.map +1 -0
- package/dist-esm/samples-dev/reportNestedResourceCheckNameAvailabilitySample.d.ts +2 -0
- package/dist-esm/samples-dev/reportNestedResourceCheckNameAvailabilitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/reportNestedResourceCheckNameAvailabilitySample.js +77 -0
- package/dist-esm/samples-dev/reportNestedResourceCheckNameAvailabilitySample.js.map +1 -0
- package/dist-esm/samples-dev/reportSyncCertRecordSample.d.ts +2 -0
- package/dist-esm/samples-dev/reportSyncCertRecordSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/reportSyncCertRecordSample.js +48 -0
- package/dist-esm/samples-dev/reportSyncCertRecordSample.js.map +1 -0
- package/dist-esm/samples-dev/reportUpdateSample.js +33 -14
- package/dist-esm/samples-dev/reportUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/reportVerifySample.d.ts +2 -0
- package/dist-esm/samples-dev/reportVerifySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/reportVerifySample.js +36 -0
- package/dist-esm/samples-dev/reportVerifySample.js.map +1 -0
- package/dist-esm/samples-dev/scopingConfigurationCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/scopingConfigurationCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/scopingConfigurationCreateOrUpdateSample.js +56 -0
- package/dist-esm/samples-dev/scopingConfigurationCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/scopingConfigurationDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/scopingConfigurationDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/scopingConfigurationDeleteSample.js +37 -0
- package/dist-esm/samples-dev/scopingConfigurationDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/scopingConfigurationGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/scopingConfigurationGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/scopingConfigurationGetSample.js +37 -0
- package/dist-esm/samples-dev/scopingConfigurationGetSample.js.map +1 -0
- package/dist-esm/samples-dev/scopingConfigurationListSample.d.ts +2 -0
- package/dist-esm/samples-dev/scopingConfigurationListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/scopingConfigurationListSample.js +52 -0
- package/dist-esm/samples-dev/scopingConfigurationListSample.js.map +1 -0
- package/dist-esm/samples-dev/snapshotDownloadSample.js +35 -32
- package/dist-esm/samples-dev/snapshotDownloadSample.js.map +1 -1
- package/dist-esm/samples-dev/snapshotGetSample.js +9 -2
- package/dist-esm/samples-dev/snapshotGetSample.js.map +1 -1
- package/dist-esm/samples-dev/snapshotListSample.d.ts +2 -0
- package/dist-esm/samples-dev/snapshotListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{snapshotsListSample.js → snapshotListSample.js} +21 -12
- package/dist-esm/samples-dev/snapshotListSample.js.map +1 -0
- package/dist-esm/samples-dev/webhookCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/webhookCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/webhookCreateOrUpdateSample.js +50 -0
- package/dist-esm/samples-dev/webhookCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/webhookDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/webhookDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/webhookDeleteSample.js +37 -0
- package/dist-esm/samples-dev/webhookDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/webhookGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/webhookGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/webhookGetSample.js +37 -0
- package/dist-esm/samples-dev/webhookGetSample.js.map +1 -0
- package/dist-esm/samples-dev/webhookListSample.d.ts +2 -0
- package/dist-esm/samples-dev/webhookListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/webhookListSample.js +55 -0
- package/dist-esm/samples-dev/webhookListSample.js.map +1 -0
- package/dist-esm/samples-dev/webhookUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/webhookUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/webhookUpdateSample.js +50 -0
- package/dist-esm/samples-dev/webhookUpdateSample.js.map +1 -0
- package/dist-esm/src/appComplianceAutomationToolForMicrosoft365.d.ts +5 -3
- package/dist-esm/src/appComplianceAutomationToolForMicrosoft365.d.ts.map +1 -1
- package/dist-esm/src/appComplianceAutomationToolForMicrosoft365.js +13 -11
- package/dist-esm/src/appComplianceAutomationToolForMicrosoft365.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +1422 -360
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +272 -84
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +57 -7
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +2212 -782
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +21 -4
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +171 -57
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/evidence.d.ts +65 -0
- package/dist-esm/src/operations/evidence.d.ts.map +1 -0
- package/dist-esm/src/operations/evidence.js +273 -0
- package/dist-esm/src/operations/evidence.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +4 -2
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +4 -2
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts +2 -2
- package/dist-esm/src/operations/operations.js +17 -16
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/providerActions.d.ts +62 -0
- package/dist-esm/src/operations/providerActions.d.ts.map +1 -0
- package/dist-esm/src/operations/providerActions.js +292 -0
- package/dist-esm/src/operations/providerActions.js.map +1 -0
- package/dist-esm/src/operations/report.d.ts +85 -12
- package/dist-esm/src/operations/report.d.ts.map +1 -1
- package/dist-esm/src/operations/report.js +496 -63
- package/dist-esm/src/operations/report.js.map +1 -1
- package/dist-esm/src/operations/scopingConfiguration.d.ts +58 -0
- package/dist-esm/src/operations/scopingConfiguration.d.ts.map +1 -0
- package/dist-esm/src/operations/scopingConfiguration.js +229 -0
- package/dist-esm/src/operations/scopingConfiguration.js.map +1 -0
- package/dist-esm/src/operations/snapshot.d.ts +28 -6
- package/dist-esm/src/operations/snapshot.d.ts.map +1 -1
- package/dist-esm/src/operations/snapshot.js +155 -30
- package/dist-esm/src/operations/snapshot.js.map +1 -1
- package/dist-esm/src/operations/webhook.d.ts +65 -0
- package/dist-esm/src/operations/webhook.d.ts.map +1 -0
- package/dist-esm/src/operations/webhook.js +269 -0
- package/dist-esm/src/operations/webhook.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/evidence.d.ts +42 -0
- package/dist-esm/src/operationsInterfaces/evidence.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/{snapshots.js → evidence.js} +1 -1
- package/dist-esm/src/operationsInterfaces/evidence.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +4 -2
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +4 -2
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/operations.d.ts +1 -1
- package/dist-esm/src/operationsInterfaces/providerActions.d.ts +54 -0
- package/dist-esm/src/operationsInterfaces/providerActions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/providerActions.js +9 -0
- package/dist-esm/src/operationsInterfaces/providerActions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/report.d.ts +72 -12
- package/dist-esm/src/operationsInterfaces/report.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/scopingConfiguration.d.ts +35 -0
- package/dist-esm/src/operationsInterfaces/scopingConfiguration.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/scopingConfiguration.js +9 -0
- package/dist-esm/src/operationsInterfaces/scopingConfiguration.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/snapshot.d.ts +13 -6
- package/dist-esm/src/operationsInterfaces/snapshot.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/webhook.d.ts +42 -0
- package/dist-esm/src/operationsInterfaces/webhook.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/{reports.js → webhook.js} +1 -1
- package/dist-esm/src/operationsInterfaces/webhook.js.map +1 -0
- package/dist-esm/src/pagingHelper.d.ts +4 -4
- package/dist-esm/src/pagingHelper.js +4 -4
- package/dist-esm/src/pagingHelper.js.map +1 -1
- package/dist-esm/test/appcomplianceautomation_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/appcomplianceautomation_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/appcomplianceautomation_operations_test.spec.js +74 -0
- package/dist-esm/test/appcomplianceautomation_operations_test.spec.js.map +1 -0
- package/package.json +24 -28
- package/review/arm-appcomplianceautomation.api.md +921 -178
- package/src/appComplianceAutomationToolForMicrosoft365.ts +34 -25
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +1644 -438
- package/src/models/mappers.ts +2279 -786
- package/src/models/parameters.ts +201 -58
- package/src/operations/evidence.ts +343 -0
- package/src/operations/index.ts +4 -2
- package/src/operations/operations.ts +18 -19
- package/src/operations/providerActions.ts +405 -0
- package/src/operations/report.ts +665 -115
- package/src/operations/scopingConfiguration.ts +283 -0
- package/src/operations/snapshot.ts +195 -53
- package/src/operations/webhook.ts +335 -0
- package/src/operationsInterfaces/evidence.ts +83 -0
- package/src/operationsInterfaces/index.ts +4 -2
- package/src/operationsInterfaces/operations.ts +2 -2
- package/src/operationsInterfaces/providerActions.ts +115 -0
- package/src/operationsInterfaces/report.ts +138 -23
- package/src/operationsInterfaces/scopingConfiguration.ts +68 -0
- package/src/operationsInterfaces/snapshot.ts +24 -11
- package/src/operationsInterfaces/webhook.ts +83 -0
- package/src/pagingHelper.ts +5 -5
- package/types/arm-appcomplianceautomation.d.ts +1957 -551
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/samples-dev/reportsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/reportsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/reportsListSample.js.map +0 -1
- package/dist-esm/samples-dev/snapshotsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/snapshotsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/snapshotsListSample.js.map +0 -1
- package/dist-esm/src/operations/reports.d.ts +0 -32
- package/dist-esm/src/operations/reports.d.ts.map +0 -1
- package/dist-esm/src/operations/reports.js +0 -146
- package/dist-esm/src/operations/reports.js.map +0 -1
- package/dist-esm/src/operations/snapshots.d.ts +0 -35
- package/dist-esm/src/operations/snapshots.d.ts.map +0 -1
- package/dist-esm/src/operations/snapshots.js +0 -149
- package/dist-esm/src/operations/snapshots.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/reports.d.ts +0 -11
- package/dist-esm/src/operationsInterfaces/reports.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/reports.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/snapshots.d.ts +0 -12
- package/dist-esm/src/operationsInterfaces/snapshots.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/snapshots.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/rollup.config.js +0 -122
- package/src/operations/reports.ts +0 -164
- package/src/operations/snapshots.ts +0 -176
- package/src/operationsInterfaces/reports.ts +0 -22
- package/src/operationsInterfaces/snapshots.ts +0 -24
|
@@ -1,164 +0,0 @@
|
|
|
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, PageSettings } from "@azure/core-paging";
|
|
10
|
-
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
-
import { Reports } from "../operationsInterfaces";
|
|
12
|
-
import * as coreClient from "@azure/core-client";
|
|
13
|
-
import * as Mappers from "../models/mappers";
|
|
14
|
-
import * as Parameters from "../models/parameters";
|
|
15
|
-
import { AppComplianceAutomationToolForMicrosoft365 } from "../appComplianceAutomationToolForMicrosoft365";
|
|
16
|
-
import {
|
|
17
|
-
ReportResource,
|
|
18
|
-
ReportsListNextOptionalParams,
|
|
19
|
-
ReportsListOptionalParams,
|
|
20
|
-
ReportsListResponse,
|
|
21
|
-
ReportsListNextResponse
|
|
22
|
-
} from "../models";
|
|
23
|
-
|
|
24
|
-
/// <reference lib="esnext.asynciterable" />
|
|
25
|
-
/** Class containing Reports operations. */
|
|
26
|
-
export class ReportsImpl implements Reports {
|
|
27
|
-
private readonly client: AppComplianceAutomationToolForMicrosoft365;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Initialize a new instance of the class Reports class.
|
|
31
|
-
* @param client Reference to the service client
|
|
32
|
-
*/
|
|
33
|
-
constructor(client: AppComplianceAutomationToolForMicrosoft365) {
|
|
34
|
-
this.client = client;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Get the AppComplianceAutomation report list for the tenant.
|
|
39
|
-
* @param options The options parameters.
|
|
40
|
-
*/
|
|
41
|
-
public list(
|
|
42
|
-
options?: ReportsListOptionalParams
|
|
43
|
-
): PagedAsyncIterableIterator<ReportResource> {
|
|
44
|
-
const iter = this.listPagingAll(options);
|
|
45
|
-
return {
|
|
46
|
-
next() {
|
|
47
|
-
return iter.next();
|
|
48
|
-
},
|
|
49
|
-
[Symbol.asyncIterator]() {
|
|
50
|
-
return this;
|
|
51
|
-
},
|
|
52
|
-
byPage: (settings?: PageSettings) => {
|
|
53
|
-
if (settings?.maxPageSize) {
|
|
54
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
55
|
-
}
|
|
56
|
-
return this.listPagingPage(options, settings);
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
private async *listPagingPage(
|
|
62
|
-
options?: ReportsListOptionalParams,
|
|
63
|
-
settings?: PageSettings
|
|
64
|
-
): AsyncIterableIterator<ReportResource[]> {
|
|
65
|
-
let result: ReportsListResponse;
|
|
66
|
-
let continuationToken = settings?.continuationToken;
|
|
67
|
-
if (!continuationToken) {
|
|
68
|
-
result = await this._list(options);
|
|
69
|
-
let page = result.value || [];
|
|
70
|
-
continuationToken = result.nextLink;
|
|
71
|
-
setContinuationToken(page, continuationToken);
|
|
72
|
-
yield page;
|
|
73
|
-
}
|
|
74
|
-
while (continuationToken) {
|
|
75
|
-
result = await this._listNext(continuationToken, options);
|
|
76
|
-
continuationToken = result.nextLink;
|
|
77
|
-
let page = result.value || [];
|
|
78
|
-
setContinuationToken(page, continuationToken);
|
|
79
|
-
yield page;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
private async *listPagingAll(
|
|
84
|
-
options?: ReportsListOptionalParams
|
|
85
|
-
): AsyncIterableIterator<ReportResource> {
|
|
86
|
-
for await (const page of this.listPagingPage(options)) {
|
|
87
|
-
yield* page;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Get the AppComplianceAutomation report list for the tenant.
|
|
93
|
-
* @param options The options parameters.
|
|
94
|
-
*/
|
|
95
|
-
private _list(
|
|
96
|
-
options?: ReportsListOptionalParams
|
|
97
|
-
): Promise<ReportsListResponse> {
|
|
98
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* ListNext
|
|
103
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
104
|
-
* @param options The options parameters.
|
|
105
|
-
*/
|
|
106
|
-
private _listNext(
|
|
107
|
-
nextLink: string,
|
|
108
|
-
options?: ReportsListNextOptionalParams
|
|
109
|
-
): Promise<ReportsListNextResponse> {
|
|
110
|
-
return this.client.sendOperationRequest(
|
|
111
|
-
{ nextLink, options },
|
|
112
|
-
listNextOperationSpec
|
|
113
|
-
);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
// Operation Specifications
|
|
117
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
118
|
-
|
|
119
|
-
const listOperationSpec: coreClient.OperationSpec = {
|
|
120
|
-
path: "/providers/Microsoft.AppComplianceAutomation/reports",
|
|
121
|
-
httpMethod: "GET",
|
|
122
|
-
responses: {
|
|
123
|
-
200: {
|
|
124
|
-
bodyMapper: Mappers.ReportResourceList
|
|
125
|
-
},
|
|
126
|
-
default: {
|
|
127
|
-
bodyMapper: Mappers.ErrorResponse
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
queryParameters: [
|
|
131
|
-
Parameters.apiVersion,
|
|
132
|
-
Parameters.skipToken,
|
|
133
|
-
Parameters.top,
|
|
134
|
-
Parameters.select,
|
|
135
|
-
Parameters.offerGuid,
|
|
136
|
-
Parameters.reportCreatorTenantId
|
|
137
|
-
],
|
|
138
|
-
urlParameters: [Parameters.$host],
|
|
139
|
-
headerParameters: [Parameters.accept],
|
|
140
|
-
serializer
|
|
141
|
-
};
|
|
142
|
-
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
143
|
-
path: "{nextLink}",
|
|
144
|
-
httpMethod: "GET",
|
|
145
|
-
responses: {
|
|
146
|
-
200: {
|
|
147
|
-
bodyMapper: Mappers.ReportResourceList
|
|
148
|
-
},
|
|
149
|
-
default: {
|
|
150
|
-
bodyMapper: Mappers.ErrorResponse
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
queryParameters: [
|
|
154
|
-
Parameters.apiVersion,
|
|
155
|
-
Parameters.skipToken,
|
|
156
|
-
Parameters.top,
|
|
157
|
-
Parameters.select,
|
|
158
|
-
Parameters.offerGuid,
|
|
159
|
-
Parameters.reportCreatorTenantId
|
|
160
|
-
],
|
|
161
|
-
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
162
|
-
headerParameters: [Parameters.accept],
|
|
163
|
-
serializer
|
|
164
|
-
};
|
|
@@ -1,176 +0,0 @@
|
|
|
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, PageSettings } from "@azure/core-paging";
|
|
10
|
-
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
-
import { Snapshots } from "../operationsInterfaces";
|
|
12
|
-
import * as coreClient from "@azure/core-client";
|
|
13
|
-
import * as Mappers from "../models/mappers";
|
|
14
|
-
import * as Parameters from "../models/parameters";
|
|
15
|
-
import { AppComplianceAutomationToolForMicrosoft365 } from "../appComplianceAutomationToolForMicrosoft365";
|
|
16
|
-
import {
|
|
17
|
-
SnapshotResource,
|
|
18
|
-
SnapshotsListNextOptionalParams,
|
|
19
|
-
SnapshotsListOptionalParams,
|
|
20
|
-
SnapshotsListResponse,
|
|
21
|
-
SnapshotsListNextResponse
|
|
22
|
-
} from "../models";
|
|
23
|
-
|
|
24
|
-
/// <reference lib="esnext.asynciterable" />
|
|
25
|
-
/** Class containing Snapshots operations. */
|
|
26
|
-
export class SnapshotsImpl implements Snapshots {
|
|
27
|
-
private readonly client: AppComplianceAutomationToolForMicrosoft365;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Initialize a new instance of the class Snapshots class.
|
|
31
|
-
* @param client Reference to the service client
|
|
32
|
-
*/
|
|
33
|
-
constructor(client: AppComplianceAutomationToolForMicrosoft365) {
|
|
34
|
-
this.client = client;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Get the AppComplianceAutomation snapshot list.
|
|
39
|
-
* @param reportName Report Name.
|
|
40
|
-
* @param options The options parameters.
|
|
41
|
-
*/
|
|
42
|
-
public list(
|
|
43
|
-
reportName: string,
|
|
44
|
-
options?: SnapshotsListOptionalParams
|
|
45
|
-
): PagedAsyncIterableIterator<SnapshotResource> {
|
|
46
|
-
const iter = this.listPagingAll(reportName, options);
|
|
47
|
-
return {
|
|
48
|
-
next() {
|
|
49
|
-
return iter.next();
|
|
50
|
-
},
|
|
51
|
-
[Symbol.asyncIterator]() {
|
|
52
|
-
return this;
|
|
53
|
-
},
|
|
54
|
-
byPage: (settings?: PageSettings) => {
|
|
55
|
-
if (settings?.maxPageSize) {
|
|
56
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
57
|
-
}
|
|
58
|
-
return this.listPagingPage(reportName, options, settings);
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
private async *listPagingPage(
|
|
64
|
-
reportName: string,
|
|
65
|
-
options?: SnapshotsListOptionalParams,
|
|
66
|
-
settings?: PageSettings
|
|
67
|
-
): AsyncIterableIterator<SnapshotResource[]> {
|
|
68
|
-
let result: SnapshotsListResponse;
|
|
69
|
-
let continuationToken = settings?.continuationToken;
|
|
70
|
-
if (!continuationToken) {
|
|
71
|
-
result = await this._list(reportName, options);
|
|
72
|
-
let page = result.value || [];
|
|
73
|
-
continuationToken = result.nextLink;
|
|
74
|
-
setContinuationToken(page, continuationToken);
|
|
75
|
-
yield page;
|
|
76
|
-
}
|
|
77
|
-
while (continuationToken) {
|
|
78
|
-
result = await this._listNext(reportName, continuationToken, options);
|
|
79
|
-
continuationToken = result.nextLink;
|
|
80
|
-
let page = result.value || [];
|
|
81
|
-
setContinuationToken(page, continuationToken);
|
|
82
|
-
yield page;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
private async *listPagingAll(
|
|
87
|
-
reportName: string,
|
|
88
|
-
options?: SnapshotsListOptionalParams
|
|
89
|
-
): AsyncIterableIterator<SnapshotResource> {
|
|
90
|
-
for await (const page of this.listPagingPage(reportName, options)) {
|
|
91
|
-
yield* page;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Get the AppComplianceAutomation snapshot list.
|
|
97
|
-
* @param reportName Report Name.
|
|
98
|
-
* @param options The options parameters.
|
|
99
|
-
*/
|
|
100
|
-
private _list(
|
|
101
|
-
reportName: string,
|
|
102
|
-
options?: SnapshotsListOptionalParams
|
|
103
|
-
): Promise<SnapshotsListResponse> {
|
|
104
|
-
return this.client.sendOperationRequest(
|
|
105
|
-
{ reportName, options },
|
|
106
|
-
listOperationSpec
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* ListNext
|
|
112
|
-
* @param reportName Report Name.
|
|
113
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
114
|
-
* @param options The options parameters.
|
|
115
|
-
*/
|
|
116
|
-
private _listNext(
|
|
117
|
-
reportName: string,
|
|
118
|
-
nextLink: string,
|
|
119
|
-
options?: SnapshotsListNextOptionalParams
|
|
120
|
-
): Promise<SnapshotsListNextResponse> {
|
|
121
|
-
return this.client.sendOperationRequest(
|
|
122
|
-
{ reportName, nextLink, options },
|
|
123
|
-
listNextOperationSpec
|
|
124
|
-
);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
// Operation Specifications
|
|
128
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
129
|
-
|
|
130
|
-
const listOperationSpec: coreClient.OperationSpec = {
|
|
131
|
-
path:
|
|
132
|
-
"/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/snapshots",
|
|
133
|
-
httpMethod: "GET",
|
|
134
|
-
responses: {
|
|
135
|
-
200: {
|
|
136
|
-
bodyMapper: Mappers.SnapshotResourceList
|
|
137
|
-
},
|
|
138
|
-
default: {
|
|
139
|
-
bodyMapper: Mappers.ErrorResponse
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
queryParameters: [
|
|
143
|
-
Parameters.apiVersion,
|
|
144
|
-
Parameters.skipToken,
|
|
145
|
-
Parameters.top,
|
|
146
|
-
Parameters.select,
|
|
147
|
-
Parameters.offerGuid,
|
|
148
|
-
Parameters.reportCreatorTenantId
|
|
149
|
-
],
|
|
150
|
-
urlParameters: [Parameters.$host, Parameters.reportName],
|
|
151
|
-
headerParameters: [Parameters.accept],
|
|
152
|
-
serializer
|
|
153
|
-
};
|
|
154
|
-
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
155
|
-
path: "{nextLink}",
|
|
156
|
-
httpMethod: "GET",
|
|
157
|
-
responses: {
|
|
158
|
-
200: {
|
|
159
|
-
bodyMapper: Mappers.SnapshotResourceList
|
|
160
|
-
},
|
|
161
|
-
default: {
|
|
162
|
-
bodyMapper: Mappers.ErrorResponse
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
queryParameters: [
|
|
166
|
-
Parameters.apiVersion,
|
|
167
|
-
Parameters.skipToken,
|
|
168
|
-
Parameters.top,
|
|
169
|
-
Parameters.select,
|
|
170
|
-
Parameters.offerGuid,
|
|
171
|
-
Parameters.reportCreatorTenantId
|
|
172
|
-
],
|
|
173
|
-
urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.reportName],
|
|
174
|
-
headerParameters: [Parameters.accept],
|
|
175
|
-
serializer
|
|
176
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
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 { ReportResource, ReportsListOptionalParams } from "../models";
|
|
11
|
-
|
|
12
|
-
/// <reference lib="esnext.asynciterable" />
|
|
13
|
-
/** Interface representing a Reports. */
|
|
14
|
-
export interface Reports {
|
|
15
|
-
/**
|
|
16
|
-
* Get the AppComplianceAutomation report list for the tenant.
|
|
17
|
-
* @param options The options parameters.
|
|
18
|
-
*/
|
|
19
|
-
list(
|
|
20
|
-
options?: ReportsListOptionalParams
|
|
21
|
-
): PagedAsyncIterableIterator<ReportResource>;
|
|
22
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
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 { SnapshotResource, SnapshotsListOptionalParams } from "../models";
|
|
11
|
-
|
|
12
|
-
/// <reference lib="esnext.asynciterable" />
|
|
13
|
-
/** Interface representing a Snapshots. */
|
|
14
|
-
export interface Snapshots {
|
|
15
|
-
/**
|
|
16
|
-
* Get the AppComplianceAutomation snapshot list.
|
|
17
|
-
* @param reportName Report Name.
|
|
18
|
-
* @param options The options parameters.
|
|
19
|
-
*/
|
|
20
|
-
list(
|
|
21
|
-
reportName: string,
|
|
22
|
-
options?: SnapshotsListOptionalParams
|
|
23
|
-
): PagedAsyncIterableIterator<SnapshotResource>;
|
|
24
|
-
}
|