@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
|
@@ -0,0 +1,283 @@
|
|
|
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 { ScopingConfiguration } 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
|
+
ScopingConfigurationResource,
|
|
18
|
+
ScopingConfigurationListNextOptionalParams,
|
|
19
|
+
ScopingConfigurationListOptionalParams,
|
|
20
|
+
ScopingConfigurationListResponse,
|
|
21
|
+
ScopingConfigurationGetOptionalParams,
|
|
22
|
+
ScopingConfigurationGetResponse,
|
|
23
|
+
ScopingConfigurationCreateOrUpdateOptionalParams,
|
|
24
|
+
ScopingConfigurationCreateOrUpdateResponse,
|
|
25
|
+
ScopingConfigurationDeleteOptionalParams,
|
|
26
|
+
ScopingConfigurationListNextResponse,
|
|
27
|
+
} from "../models";
|
|
28
|
+
|
|
29
|
+
/// <reference lib="esnext.asynciterable" />
|
|
30
|
+
/** Class containing ScopingConfiguration operations. */
|
|
31
|
+
export class ScopingConfigurationImpl implements ScopingConfiguration {
|
|
32
|
+
private readonly client: AppComplianceAutomationToolForMicrosoft365;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Initialize a new instance of the class ScopingConfiguration class.
|
|
36
|
+
* @param client Reference to the service client
|
|
37
|
+
*/
|
|
38
|
+
constructor(client: AppComplianceAutomationToolForMicrosoft365) {
|
|
39
|
+
this.client = client;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Returns a list format of the singleton scopingConfiguration for a specified report.
|
|
44
|
+
* @param reportName Report Name.
|
|
45
|
+
* @param options The options parameters.
|
|
46
|
+
*/
|
|
47
|
+
public list(
|
|
48
|
+
reportName: string,
|
|
49
|
+
options?: ScopingConfigurationListOptionalParams,
|
|
50
|
+
): PagedAsyncIterableIterator<ScopingConfigurationResource> {
|
|
51
|
+
const iter = this.listPagingAll(reportName, options);
|
|
52
|
+
return {
|
|
53
|
+
next() {
|
|
54
|
+
return iter.next();
|
|
55
|
+
},
|
|
56
|
+
[Symbol.asyncIterator]() {
|
|
57
|
+
return this;
|
|
58
|
+
},
|
|
59
|
+
byPage: (settings?: PageSettings) => {
|
|
60
|
+
if (settings?.maxPageSize) {
|
|
61
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
62
|
+
}
|
|
63
|
+
return this.listPagingPage(reportName, options, settings);
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
private async *listPagingPage(
|
|
69
|
+
reportName: string,
|
|
70
|
+
options?: ScopingConfigurationListOptionalParams,
|
|
71
|
+
settings?: PageSettings,
|
|
72
|
+
): AsyncIterableIterator<ScopingConfigurationResource[]> {
|
|
73
|
+
let result: ScopingConfigurationListResponse;
|
|
74
|
+
let continuationToken = settings?.continuationToken;
|
|
75
|
+
if (!continuationToken) {
|
|
76
|
+
result = await this._list(reportName, options);
|
|
77
|
+
let page = result.value || [];
|
|
78
|
+
continuationToken = result.nextLink;
|
|
79
|
+
setContinuationToken(page, continuationToken);
|
|
80
|
+
yield page;
|
|
81
|
+
}
|
|
82
|
+
while (continuationToken) {
|
|
83
|
+
result = await this._listNext(reportName, continuationToken, options);
|
|
84
|
+
continuationToken = result.nextLink;
|
|
85
|
+
let page = result.value || [];
|
|
86
|
+
setContinuationToken(page, continuationToken);
|
|
87
|
+
yield page;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
private async *listPagingAll(
|
|
92
|
+
reportName: string,
|
|
93
|
+
options?: ScopingConfigurationListOptionalParams,
|
|
94
|
+
): AsyncIterableIterator<ScopingConfigurationResource> {
|
|
95
|
+
for await (const page of this.listPagingPage(reportName, options)) {
|
|
96
|
+
yield* page;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Returns a list format of the singleton scopingConfiguration for a specified report.
|
|
102
|
+
* @param reportName Report Name.
|
|
103
|
+
* @param options The options parameters.
|
|
104
|
+
*/
|
|
105
|
+
private _list(
|
|
106
|
+
reportName: string,
|
|
107
|
+
options?: ScopingConfigurationListOptionalParams,
|
|
108
|
+
): Promise<ScopingConfigurationListResponse> {
|
|
109
|
+
return this.client.sendOperationRequest(
|
|
110
|
+
{ reportName, options },
|
|
111
|
+
listOperationSpec,
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Get the AppComplianceAutomation scoping configuration of the specific report.
|
|
117
|
+
* @param reportName Report Name.
|
|
118
|
+
* @param scopingConfigurationName The scoping configuration of the specific report.
|
|
119
|
+
* @param options The options parameters.
|
|
120
|
+
*/
|
|
121
|
+
get(
|
|
122
|
+
reportName: string,
|
|
123
|
+
scopingConfigurationName: string,
|
|
124
|
+
options?: ScopingConfigurationGetOptionalParams,
|
|
125
|
+
): Promise<ScopingConfigurationGetResponse> {
|
|
126
|
+
return this.client.sendOperationRequest(
|
|
127
|
+
{ reportName, scopingConfigurationName, options },
|
|
128
|
+
getOperationSpec,
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Get the AppComplianceAutomation scoping configuration of the specific report.
|
|
134
|
+
* @param reportName Report Name.
|
|
135
|
+
* @param scopingConfigurationName The scoping configuration of the specific report.
|
|
136
|
+
* @param properties Parameters for the create or update operation, this is a singleton resource, so
|
|
137
|
+
* please make sure you're using 'default' as the name.
|
|
138
|
+
* @param options The options parameters.
|
|
139
|
+
*/
|
|
140
|
+
createOrUpdate(
|
|
141
|
+
reportName: string,
|
|
142
|
+
scopingConfigurationName: string,
|
|
143
|
+
properties: ScopingConfigurationResource,
|
|
144
|
+
options?: ScopingConfigurationCreateOrUpdateOptionalParams,
|
|
145
|
+
): Promise<ScopingConfigurationCreateOrUpdateResponse> {
|
|
146
|
+
return this.client.sendOperationRequest(
|
|
147
|
+
{ reportName, scopingConfigurationName, properties, options },
|
|
148
|
+
createOrUpdateOperationSpec,
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Clean the AppComplianceAutomation scoping configuration of the specific report.
|
|
154
|
+
* @param reportName Report Name.
|
|
155
|
+
* @param scopingConfigurationName The scoping configuration of the specific report.
|
|
156
|
+
* @param options The options parameters.
|
|
157
|
+
*/
|
|
158
|
+
delete(
|
|
159
|
+
reportName: string,
|
|
160
|
+
scopingConfigurationName: string,
|
|
161
|
+
options?: ScopingConfigurationDeleteOptionalParams,
|
|
162
|
+
): Promise<void> {
|
|
163
|
+
return this.client.sendOperationRequest(
|
|
164
|
+
{ reportName, scopingConfigurationName, options },
|
|
165
|
+
deleteOperationSpec,
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* ListNext
|
|
171
|
+
* @param reportName Report Name.
|
|
172
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
173
|
+
* @param options The options parameters.
|
|
174
|
+
*/
|
|
175
|
+
private _listNext(
|
|
176
|
+
reportName: string,
|
|
177
|
+
nextLink: string,
|
|
178
|
+
options?: ScopingConfigurationListNextOptionalParams,
|
|
179
|
+
): Promise<ScopingConfigurationListNextResponse> {
|
|
180
|
+
return this.client.sendOperationRequest(
|
|
181
|
+
{ reportName, nextLink, options },
|
|
182
|
+
listNextOperationSpec,
|
|
183
|
+
);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
// Operation Specifications
|
|
187
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
188
|
+
|
|
189
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
190
|
+
path: "/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/scopingConfigurations",
|
|
191
|
+
httpMethod: "GET",
|
|
192
|
+
responses: {
|
|
193
|
+
200: {
|
|
194
|
+
bodyMapper: Mappers.ScopingConfigurationResourceListResult,
|
|
195
|
+
},
|
|
196
|
+
default: {
|
|
197
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
queryParameters: [Parameters.apiVersion],
|
|
201
|
+
urlParameters: [Parameters.$host, Parameters.reportName],
|
|
202
|
+
headerParameters: [Parameters.accept],
|
|
203
|
+
serializer,
|
|
204
|
+
};
|
|
205
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
206
|
+
path: "/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/scopingConfigurations/{scopingConfigurationName}",
|
|
207
|
+
httpMethod: "GET",
|
|
208
|
+
responses: {
|
|
209
|
+
200: {
|
|
210
|
+
bodyMapper: Mappers.ScopingConfigurationResource,
|
|
211
|
+
},
|
|
212
|
+
default: {
|
|
213
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
queryParameters: [Parameters.apiVersion],
|
|
217
|
+
urlParameters: [
|
|
218
|
+
Parameters.$host,
|
|
219
|
+
Parameters.reportName,
|
|
220
|
+
Parameters.scopingConfigurationName,
|
|
221
|
+
],
|
|
222
|
+
headerParameters: [Parameters.accept],
|
|
223
|
+
serializer,
|
|
224
|
+
};
|
|
225
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
226
|
+
path: "/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/scopingConfigurations/{scopingConfigurationName}",
|
|
227
|
+
httpMethod: "PUT",
|
|
228
|
+
responses: {
|
|
229
|
+
200: {
|
|
230
|
+
bodyMapper: Mappers.ScopingConfigurationResource,
|
|
231
|
+
},
|
|
232
|
+
201: {
|
|
233
|
+
bodyMapper: Mappers.ScopingConfigurationResource,
|
|
234
|
+
},
|
|
235
|
+
default: {
|
|
236
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
requestBody: Parameters.properties3,
|
|
240
|
+
queryParameters: [Parameters.apiVersion],
|
|
241
|
+
urlParameters: [
|
|
242
|
+
Parameters.$host,
|
|
243
|
+
Parameters.reportName,
|
|
244
|
+
Parameters.scopingConfigurationName,
|
|
245
|
+
],
|
|
246
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
247
|
+
mediaType: "json",
|
|
248
|
+
serializer,
|
|
249
|
+
};
|
|
250
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
251
|
+
path: "/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/scopingConfigurations/{scopingConfigurationName}",
|
|
252
|
+
httpMethod: "DELETE",
|
|
253
|
+
responses: {
|
|
254
|
+
200: {},
|
|
255
|
+
204: {},
|
|
256
|
+
default: {
|
|
257
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
queryParameters: [Parameters.apiVersion],
|
|
261
|
+
urlParameters: [
|
|
262
|
+
Parameters.$host,
|
|
263
|
+
Parameters.reportName,
|
|
264
|
+
Parameters.scopingConfigurationName,
|
|
265
|
+
],
|
|
266
|
+
headerParameters: [Parameters.accept],
|
|
267
|
+
serializer,
|
|
268
|
+
};
|
|
269
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
270
|
+
path: "{nextLink}",
|
|
271
|
+
httpMethod: "GET",
|
|
272
|
+
responses: {
|
|
273
|
+
200: {
|
|
274
|
+
bodyMapper: Mappers.ScopingConfigurationResourceListResult,
|
|
275
|
+
},
|
|
276
|
+
default: {
|
|
277
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
278
|
+
},
|
|
279
|
+
},
|
|
280
|
+
urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.reportName],
|
|
281
|
+
headerParameters: [Parameters.accept],
|
|
282
|
+
serializer,
|
|
283
|
+
};
|
|
@@ -6,21 +6,33 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
9
11
|
import { Snapshot } from "../operationsInterfaces";
|
|
10
12
|
import * as coreClient from "@azure/core-client";
|
|
11
13
|
import * as Mappers from "../models/mappers";
|
|
12
14
|
import * as Parameters from "../models/parameters";
|
|
13
15
|
import { AppComplianceAutomationToolForMicrosoft365 } from "../appComplianceAutomationToolForMicrosoft365";
|
|
14
|
-
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
15
|
-
import { LroImpl } from "../lroImpl";
|
|
16
16
|
import {
|
|
17
|
+
SimplePollerLike,
|
|
18
|
+
OperationState,
|
|
19
|
+
createHttpPoller,
|
|
20
|
+
} from "@azure/core-lro";
|
|
21
|
+
import { createLroSpec } from "../lroImpl";
|
|
22
|
+
import {
|
|
23
|
+
SnapshotResource,
|
|
24
|
+
SnapshotListNextOptionalParams,
|
|
25
|
+
SnapshotListOptionalParams,
|
|
26
|
+
SnapshotListResponse,
|
|
17
27
|
SnapshotGetOptionalParams,
|
|
18
28
|
SnapshotGetResponse,
|
|
19
29
|
SnapshotDownloadRequest,
|
|
20
30
|
SnapshotDownloadOptionalParams,
|
|
21
|
-
SnapshotDownloadResponse
|
|
31
|
+
SnapshotDownloadResponse,
|
|
32
|
+
SnapshotListNextResponse,
|
|
22
33
|
} from "../models";
|
|
23
34
|
|
|
35
|
+
/// <reference lib="esnext.asynciterable" />
|
|
24
36
|
/** Class containing Snapshot operations. */
|
|
25
37
|
export class SnapshotImpl implements Snapshot {
|
|
26
38
|
private readonly client: AppComplianceAutomationToolForMicrosoft365;
|
|
@@ -33,6 +45,79 @@ export class SnapshotImpl implements Snapshot {
|
|
|
33
45
|
this.client = client;
|
|
34
46
|
}
|
|
35
47
|
|
|
48
|
+
/**
|
|
49
|
+
* Get the AppComplianceAutomation snapshot list.
|
|
50
|
+
* @param reportName Report Name.
|
|
51
|
+
* @param options The options parameters.
|
|
52
|
+
*/
|
|
53
|
+
public list(
|
|
54
|
+
reportName: string,
|
|
55
|
+
options?: SnapshotListOptionalParams,
|
|
56
|
+
): PagedAsyncIterableIterator<SnapshotResource> {
|
|
57
|
+
const iter = this.listPagingAll(reportName, options);
|
|
58
|
+
return {
|
|
59
|
+
next() {
|
|
60
|
+
return iter.next();
|
|
61
|
+
},
|
|
62
|
+
[Symbol.asyncIterator]() {
|
|
63
|
+
return this;
|
|
64
|
+
},
|
|
65
|
+
byPage: (settings?: PageSettings) => {
|
|
66
|
+
if (settings?.maxPageSize) {
|
|
67
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
68
|
+
}
|
|
69
|
+
return this.listPagingPage(reportName, options, settings);
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
private async *listPagingPage(
|
|
75
|
+
reportName: string,
|
|
76
|
+
options?: SnapshotListOptionalParams,
|
|
77
|
+
settings?: PageSettings,
|
|
78
|
+
): AsyncIterableIterator<SnapshotResource[]> {
|
|
79
|
+
let result: SnapshotListResponse;
|
|
80
|
+
let continuationToken = settings?.continuationToken;
|
|
81
|
+
if (!continuationToken) {
|
|
82
|
+
result = await this._list(reportName, options);
|
|
83
|
+
let page = result.value || [];
|
|
84
|
+
continuationToken = result.nextLink;
|
|
85
|
+
setContinuationToken(page, continuationToken);
|
|
86
|
+
yield page;
|
|
87
|
+
}
|
|
88
|
+
while (continuationToken) {
|
|
89
|
+
result = await this._listNext(reportName, continuationToken, options);
|
|
90
|
+
continuationToken = result.nextLink;
|
|
91
|
+
let page = result.value || [];
|
|
92
|
+
setContinuationToken(page, continuationToken);
|
|
93
|
+
yield page;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
private async *listPagingAll(
|
|
98
|
+
reportName: string,
|
|
99
|
+
options?: SnapshotListOptionalParams,
|
|
100
|
+
): AsyncIterableIterator<SnapshotResource> {
|
|
101
|
+
for await (const page of this.listPagingPage(reportName, options)) {
|
|
102
|
+
yield* page;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Get the AppComplianceAutomation snapshot list.
|
|
108
|
+
* @param reportName Report Name.
|
|
109
|
+
* @param options The options parameters.
|
|
110
|
+
*/
|
|
111
|
+
private _list(
|
|
112
|
+
reportName: string,
|
|
113
|
+
options?: SnapshotListOptionalParams,
|
|
114
|
+
): Promise<SnapshotListResponse> {
|
|
115
|
+
return this.client.sendOperationRequest(
|
|
116
|
+
{ reportName, options },
|
|
117
|
+
listOperationSpec,
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
|
|
36
121
|
/**
|
|
37
122
|
* Get the AppComplianceAutomation snapshot and its properties.
|
|
38
123
|
* @param reportName Report Name.
|
|
@@ -42,11 +127,11 @@ export class SnapshotImpl implements Snapshot {
|
|
|
42
127
|
get(
|
|
43
128
|
reportName: string,
|
|
44
129
|
snapshotName: string,
|
|
45
|
-
options?: SnapshotGetOptionalParams
|
|
130
|
+
options?: SnapshotGetOptionalParams,
|
|
46
131
|
): Promise<SnapshotGetResponse> {
|
|
47
132
|
return this.client.sendOperationRequest(
|
|
48
133
|
{ reportName, snapshotName, options },
|
|
49
|
-
getOperationSpec
|
|
134
|
+
getOperationSpec,
|
|
50
135
|
);
|
|
51
136
|
}
|
|
52
137
|
|
|
@@ -54,37 +139,36 @@ export class SnapshotImpl implements Snapshot {
|
|
|
54
139
|
* Download compliance needs from snapshot, like: Compliance Report, Resource List.
|
|
55
140
|
* @param reportName Report Name.
|
|
56
141
|
* @param snapshotName Snapshot Name.
|
|
57
|
-
* @param
|
|
142
|
+
* @param body Parameters for the query operation
|
|
58
143
|
* @param options The options parameters.
|
|
59
144
|
*/
|
|
60
145
|
async beginDownload(
|
|
61
146
|
reportName: string,
|
|
62
147
|
snapshotName: string,
|
|
63
|
-
|
|
64
|
-
options?: SnapshotDownloadOptionalParams
|
|
148
|
+
body: SnapshotDownloadRequest,
|
|
149
|
+
options?: SnapshotDownloadOptionalParams,
|
|
65
150
|
): Promise<
|
|
66
|
-
|
|
67
|
-
|
|
151
|
+
SimplePollerLike<
|
|
152
|
+
OperationState<SnapshotDownloadResponse>,
|
|
68
153
|
SnapshotDownloadResponse
|
|
69
154
|
>
|
|
70
155
|
> {
|
|
71
156
|
const directSendOperation = async (
|
|
72
157
|
args: coreClient.OperationArguments,
|
|
73
|
-
spec: coreClient.OperationSpec
|
|
158
|
+
spec: coreClient.OperationSpec,
|
|
74
159
|
): Promise<SnapshotDownloadResponse> => {
|
|
75
160
|
return this.client.sendOperationRequest(args, spec);
|
|
76
161
|
};
|
|
77
|
-
const
|
|
162
|
+
const sendOperationFn = async (
|
|
78
163
|
args: coreClient.OperationArguments,
|
|
79
|
-
spec: coreClient.OperationSpec
|
|
164
|
+
spec: coreClient.OperationSpec,
|
|
80
165
|
) => {
|
|
81
|
-
let currentRawResponse:
|
|
82
|
-
|
|
83
|
-
| undefined = undefined;
|
|
166
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
167
|
+
undefined;
|
|
84
168
|
const providedCallback = args.options?.onResponse;
|
|
85
169
|
const callback: coreClient.RawResponseCallback = (
|
|
86
170
|
rawResponse: coreClient.FullOperationResponse,
|
|
87
|
-
flatResponse: unknown
|
|
171
|
+
flatResponse: unknown,
|
|
88
172
|
) => {
|
|
89
173
|
currentRawResponse = rawResponse;
|
|
90
174
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -93,8 +177,8 @@ export class SnapshotImpl implements Snapshot {
|
|
|
93
177
|
...args,
|
|
94
178
|
options: {
|
|
95
179
|
...args.options,
|
|
96
|
-
onResponse: callback
|
|
97
|
-
}
|
|
180
|
+
onResponse: callback,
|
|
181
|
+
},
|
|
98
182
|
};
|
|
99
183
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
100
184
|
return {
|
|
@@ -102,20 +186,23 @@ export class SnapshotImpl implements Snapshot {
|
|
|
102
186
|
rawResponse: {
|
|
103
187
|
statusCode: currentRawResponse!.status,
|
|
104
188
|
body: currentRawResponse!.parsedBody,
|
|
105
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
106
|
-
}
|
|
189
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
190
|
+
},
|
|
107
191
|
};
|
|
108
192
|
};
|
|
109
193
|
|
|
110
|
-
const lro =
|
|
111
|
-
|
|
112
|
-
{ reportName, snapshotName,
|
|
113
|
-
downloadOperationSpec
|
|
114
|
-
);
|
|
115
|
-
const poller =
|
|
116
|
-
|
|
194
|
+
const lro = createLroSpec({
|
|
195
|
+
sendOperationFn,
|
|
196
|
+
args: { reportName, snapshotName, body, options },
|
|
197
|
+
spec: downloadOperationSpec,
|
|
198
|
+
});
|
|
199
|
+
const poller = await createHttpPoller<
|
|
200
|
+
SnapshotDownloadResponse,
|
|
201
|
+
OperationState<SnapshotDownloadResponse>
|
|
202
|
+
>(lro, {
|
|
203
|
+
restoreFrom: options?.resumeFrom,
|
|
117
204
|
intervalInMs: options?.updateIntervalInMs,
|
|
118
|
-
|
|
205
|
+
resourceLocationConfig: "location",
|
|
119
206
|
});
|
|
120
207
|
await poller.poll();
|
|
121
208
|
return poller;
|
|
@@ -125,77 +212,132 @@ export class SnapshotImpl implements Snapshot {
|
|
|
125
212
|
* Download compliance needs from snapshot, like: Compliance Report, Resource List.
|
|
126
213
|
* @param reportName Report Name.
|
|
127
214
|
* @param snapshotName Snapshot Name.
|
|
128
|
-
* @param
|
|
215
|
+
* @param body Parameters for the query operation
|
|
129
216
|
* @param options The options parameters.
|
|
130
217
|
*/
|
|
131
218
|
async beginDownloadAndWait(
|
|
132
219
|
reportName: string,
|
|
133
220
|
snapshotName: string,
|
|
134
|
-
|
|
135
|
-
options?: SnapshotDownloadOptionalParams
|
|
221
|
+
body: SnapshotDownloadRequest,
|
|
222
|
+
options?: SnapshotDownloadOptionalParams,
|
|
136
223
|
): Promise<SnapshotDownloadResponse> {
|
|
137
224
|
const poller = await this.beginDownload(
|
|
138
225
|
reportName,
|
|
139
226
|
snapshotName,
|
|
140
|
-
|
|
141
|
-
options
|
|
227
|
+
body,
|
|
228
|
+
options,
|
|
142
229
|
);
|
|
143
230
|
return poller.pollUntilDone();
|
|
144
231
|
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* ListNext
|
|
235
|
+
* @param reportName Report Name.
|
|
236
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
237
|
+
* @param options The options parameters.
|
|
238
|
+
*/
|
|
239
|
+
private _listNext(
|
|
240
|
+
reportName: string,
|
|
241
|
+
nextLink: string,
|
|
242
|
+
options?: SnapshotListNextOptionalParams,
|
|
243
|
+
): Promise<SnapshotListNextResponse> {
|
|
244
|
+
return this.client.sendOperationRequest(
|
|
245
|
+
{ reportName, nextLink, options },
|
|
246
|
+
listNextOperationSpec,
|
|
247
|
+
);
|
|
248
|
+
}
|
|
145
249
|
}
|
|
146
250
|
// Operation Specifications
|
|
147
251
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
148
252
|
|
|
253
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
254
|
+
path: "/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/snapshots",
|
|
255
|
+
httpMethod: "GET",
|
|
256
|
+
responses: {
|
|
257
|
+
200: {
|
|
258
|
+
bodyMapper: Mappers.SnapshotResourceListResult,
|
|
259
|
+
},
|
|
260
|
+
default: {
|
|
261
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
queryParameters: [
|
|
265
|
+
Parameters.apiVersion,
|
|
266
|
+
Parameters.skipToken,
|
|
267
|
+
Parameters.top,
|
|
268
|
+
Parameters.select,
|
|
269
|
+
Parameters.filter,
|
|
270
|
+
Parameters.orderby,
|
|
271
|
+
Parameters.offerGuid,
|
|
272
|
+
Parameters.reportCreatorTenantId,
|
|
273
|
+
],
|
|
274
|
+
urlParameters: [Parameters.$host, Parameters.reportName],
|
|
275
|
+
headerParameters: [Parameters.accept],
|
|
276
|
+
serializer,
|
|
277
|
+
};
|
|
149
278
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
150
|
-
path:
|
|
151
|
-
"/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/snapshots/{snapshotName}",
|
|
279
|
+
path: "/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/snapshots/{snapshotName}",
|
|
152
280
|
httpMethod: "GET",
|
|
153
281
|
responses: {
|
|
154
282
|
200: {
|
|
155
|
-
bodyMapper: Mappers.SnapshotResource
|
|
283
|
+
bodyMapper: Mappers.SnapshotResource,
|
|
156
284
|
},
|
|
157
285
|
default: {
|
|
158
|
-
bodyMapper: Mappers.ErrorResponse
|
|
159
|
-
}
|
|
286
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
287
|
+
},
|
|
160
288
|
},
|
|
161
289
|
queryParameters: [Parameters.apiVersion],
|
|
162
290
|
urlParameters: [
|
|
163
291
|
Parameters.$host,
|
|
164
292
|
Parameters.reportName,
|
|
165
|
-
Parameters.snapshotName
|
|
293
|
+
Parameters.snapshotName,
|
|
166
294
|
],
|
|
167
295
|
headerParameters: [Parameters.accept],
|
|
168
|
-
serializer
|
|
296
|
+
serializer,
|
|
169
297
|
};
|
|
170
298
|
const downloadOperationSpec: coreClient.OperationSpec = {
|
|
171
|
-
path:
|
|
172
|
-
"/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/snapshots/{snapshotName}/download",
|
|
299
|
+
path: "/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/snapshots/{snapshotName}/download",
|
|
173
300
|
httpMethod: "POST",
|
|
174
301
|
responses: {
|
|
175
302
|
200: {
|
|
176
|
-
bodyMapper: Mappers.DownloadResponse
|
|
303
|
+
bodyMapper: Mappers.DownloadResponse,
|
|
177
304
|
},
|
|
178
305
|
201: {
|
|
179
|
-
bodyMapper: Mappers.DownloadResponse
|
|
306
|
+
bodyMapper: Mappers.DownloadResponse,
|
|
180
307
|
},
|
|
181
308
|
202: {
|
|
182
|
-
bodyMapper: Mappers.DownloadResponse
|
|
309
|
+
bodyMapper: Mappers.DownloadResponse,
|
|
183
310
|
},
|
|
184
311
|
204: {
|
|
185
|
-
bodyMapper: Mappers.DownloadResponse
|
|
312
|
+
bodyMapper: Mappers.DownloadResponse,
|
|
186
313
|
},
|
|
187
314
|
default: {
|
|
188
|
-
bodyMapper: Mappers.ErrorResponse
|
|
189
|
-
}
|
|
315
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
316
|
+
},
|
|
190
317
|
},
|
|
191
|
-
requestBody: Parameters.
|
|
318
|
+
requestBody: Parameters.body8,
|
|
192
319
|
queryParameters: [Parameters.apiVersion],
|
|
193
320
|
urlParameters: [
|
|
194
321
|
Parameters.$host,
|
|
195
322
|
Parameters.reportName,
|
|
196
|
-
Parameters.snapshotName
|
|
323
|
+
Parameters.snapshotName,
|
|
197
324
|
],
|
|
198
|
-
headerParameters: [Parameters.
|
|
325
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
199
326
|
mediaType: "json",
|
|
200
|
-
serializer
|
|
327
|
+
serializer,
|
|
328
|
+
};
|
|
329
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
330
|
+
path: "{nextLink}",
|
|
331
|
+
httpMethod: "GET",
|
|
332
|
+
responses: {
|
|
333
|
+
200: {
|
|
334
|
+
bodyMapper: Mappers.SnapshotResourceListResult,
|
|
335
|
+
},
|
|
336
|
+
default: {
|
|
337
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
338
|
+
},
|
|
339
|
+
},
|
|
340
|
+
urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.reportName],
|
|
341
|
+
headerParameters: [Parameters.accept],
|
|
342
|
+
serializer,
|
|
201
343
|
};
|