@microsoft/msgraph-sdk-security 1.0.0-preview.61 → 1.0.0-preview.63

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.
Files changed (74) hide show
  1. package/package.json +2 -2
  2. package/security/cases/ediscoveryCases/item/custodians/microsoftGraphSecurityApplyHold/index.d.ts +4 -5
  3. package/security/cases/ediscoveryCases/item/custodians/microsoftGraphSecurityApplyHold/index.d.ts.map +1 -1
  4. package/security/cases/ediscoveryCases/item/custodians/microsoftGraphSecurityApplyHold/index.js +8 -4
  5. package/security/cases/ediscoveryCases/item/custodians/microsoftGraphSecurityApplyHold/index.js.map +1 -1
  6. package/security/cases/ediscoveryCases/item/custodians/microsoftGraphSecurityRemoveHold/index.d.ts +4 -5
  7. package/security/cases/ediscoveryCases/item/custodians/microsoftGraphSecurityRemoveHold/index.d.ts.map +1 -1
  8. package/security/cases/ediscoveryCases/item/custodians/microsoftGraphSecurityRemoveHold/index.js +8 -4
  9. package/security/cases/ediscoveryCases/item/custodians/microsoftGraphSecurityRemoveHold/index.js.map +1 -1
  10. package/security/cases/ediscoveryCases/item/noncustodialDataSources/microsoftGraphSecurityApplyHold/index.d.ts +4 -5
  11. package/security/cases/ediscoveryCases/item/noncustodialDataSources/microsoftGraphSecurityApplyHold/index.d.ts.map +1 -1
  12. package/security/cases/ediscoveryCases/item/noncustodialDataSources/microsoftGraphSecurityApplyHold/index.js +8 -4
  13. package/security/cases/ediscoveryCases/item/noncustodialDataSources/microsoftGraphSecurityApplyHold/index.js.map +1 -1
  14. package/security/cases/ediscoveryCases/item/noncustodialDataSources/microsoftGraphSecurityRemoveHold/index.d.ts +4 -5
  15. package/security/cases/ediscoveryCases/item/noncustodialDataSources/microsoftGraphSecurityRemoveHold/index.d.ts.map +1 -1
  16. package/security/cases/ediscoveryCases/item/noncustodialDataSources/microsoftGraphSecurityRemoveHold/index.js +8 -4
  17. package/security/cases/ediscoveryCases/item/noncustodialDataSources/microsoftGraphSecurityRemoveHold/index.js.map +1 -1
  18. package/security/cases/ediscoveryCases/item/reviewSets/item/microsoftGraphSecurityAddToReviewSet/index.d.ts +4 -5
  19. package/security/cases/ediscoveryCases/item/reviewSets/item/microsoftGraphSecurityAddToReviewSet/index.d.ts.map +1 -1
  20. package/security/cases/ediscoveryCases/item/reviewSets/item/microsoftGraphSecurityAddToReviewSet/index.js +12 -8
  21. package/security/cases/ediscoveryCases/item/reviewSets/item/microsoftGraphSecurityAddToReviewSet/index.js.map +1 -1
  22. package/security/cases/ediscoveryCases/item/reviewSets/item/microsoftGraphSecurityExport/index.d.ts +4 -5
  23. package/security/cases/ediscoveryCases/item/reviewSets/item/microsoftGraphSecurityExport/index.d.ts.map +1 -1
  24. package/security/cases/ediscoveryCases/item/reviewSets/item/microsoftGraphSecurityExport/index.js +11 -7
  25. package/security/cases/ediscoveryCases/item/reviewSets/item/microsoftGraphSecurityExport/index.js.map +1 -1
  26. package/security/cases/ediscoveryCases/item/reviewSets/item/queries/item/microsoftGraphSecurityApplyTags/index.d.ts +4 -5
  27. package/security/cases/ediscoveryCases/item/reviewSets/item/queries/item/microsoftGraphSecurityApplyTags/index.d.ts.map +1 -1
  28. package/security/cases/ediscoveryCases/item/reviewSets/item/queries/item/microsoftGraphSecurityApplyTags/index.js +9 -5
  29. package/security/cases/ediscoveryCases/item/reviewSets/item/queries/item/microsoftGraphSecurityApplyTags/index.js.map +1 -1
  30. package/security/cases/ediscoveryCases/item/reviewSets/item/queries/item/microsoftGraphSecurityExport/index.d.ts +4 -5
  31. package/security/cases/ediscoveryCases/item/reviewSets/item/queries/item/microsoftGraphSecurityExport/index.d.ts.map +1 -1
  32. package/security/cases/ediscoveryCases/item/reviewSets/item/queries/item/microsoftGraphSecurityExport/index.js +11 -7
  33. package/security/cases/ediscoveryCases/item/reviewSets/item/queries/item/microsoftGraphSecurityExport/index.js.map +1 -1
  34. package/security/cases/ediscoveryCases/item/searches/item/microsoftGraphSecurityExportReport/index.d.ts +4 -5
  35. package/security/cases/ediscoveryCases/item/searches/item/microsoftGraphSecurityExportReport/index.d.ts.map +1 -1
  36. package/security/cases/ediscoveryCases/item/searches/item/microsoftGraphSecurityExportReport/index.js +14 -10
  37. package/security/cases/ediscoveryCases/item/searches/item/microsoftGraphSecurityExportReport/index.js.map +1 -1
  38. package/security/cases/ediscoveryCases/item/searches/item/microsoftGraphSecurityExportResult/index.d.ts +4 -5
  39. package/security/cases/ediscoveryCases/item/searches/item/microsoftGraphSecurityExportResult/index.d.ts.map +1 -1
  40. package/security/cases/ediscoveryCases/item/searches/item/microsoftGraphSecurityExportResult/index.js +16 -12
  41. package/security/cases/ediscoveryCases/item/searches/item/microsoftGraphSecurityExportResult/index.js.map +1 -1
  42. package/security/cases/ediscoveryCases/item/searches/item/microsoftGraphSecurityPurgeData/index.d.ts +4 -5
  43. package/security/cases/ediscoveryCases/item/searches/item/microsoftGraphSecurityPurgeData/index.d.ts.map +1 -1
  44. package/security/cases/ediscoveryCases/item/searches/item/microsoftGraphSecurityPurgeData/index.js +9 -5
  45. package/security/cases/ediscoveryCases/item/searches/item/microsoftGraphSecurityPurgeData/index.js.map +1 -1
  46. package/security/cases/ediscoveryCases/item/tags/microsoftGraphSecurityAsHierarchy/index.d.ts +4 -1
  47. package/security/cases/ediscoveryCases/item/tags/microsoftGraphSecurityAsHierarchy/index.d.ts.map +1 -1
  48. package/security/cases/ediscoveryCases/item/tags/microsoftGraphSecurityAsHierarchy/index.js +8 -4
  49. package/security/cases/ediscoveryCases/item/tags/microsoftGraphSecurityAsHierarchy/index.js.map +1 -1
  50. package/security/dataSecurityAndGovernance/index.d.ts +83 -0
  51. package/security/dataSecurityAndGovernance/index.d.ts.map +1 -0
  52. package/security/dataSecurityAndGovernance/index.js +72 -0
  53. package/security/dataSecurityAndGovernance/index.js.map +1 -0
  54. package/security/dataSecurityAndGovernance/processContentAsync/index.d.ts +85 -0
  55. package/security/dataSecurityAndGovernance/processContentAsync/index.d.ts.map +1 -0
  56. package/security/dataSecurityAndGovernance/processContentAsync/index.js +98 -0
  57. package/security/dataSecurityAndGovernance/processContentAsync/index.js.map +1 -0
  58. package/security/dataSecurityAndGovernance/protectionScopes/compute/index.d.ts +101 -0
  59. package/security/dataSecurityAndGovernance/protectionScopes/compute/index.d.ts.map +1 -0
  60. package/security/dataSecurityAndGovernance/protectionScopes/compute/index.js +106 -0
  61. package/security/dataSecurityAndGovernance/protectionScopes/compute/index.js.map +1 -0
  62. package/security/dataSecurityAndGovernance/protectionScopes/index.d.ts +78 -0
  63. package/security/dataSecurityAndGovernance/protectionScopes/index.d.ts.map +1 -0
  64. package/security/dataSecurityAndGovernance/protectionScopes/index.js +66 -0
  65. package/security/dataSecurityAndGovernance/protectionScopes/index.js.map +1 -0
  66. package/security/index.d.ts +5 -0
  67. package/security/index.d.ts.map +1 -1
  68. package/security/index.js +6 -0
  69. package/security/index.js.map +1 -1
  70. package/security/microsoftGraphSecurityRunHuntingQuery/index.d.ts +4 -5
  71. package/security/microsoftGraphSecurityRunHuntingQuery/index.d.ts.map +1 -1
  72. package/security/microsoftGraphSecurityRunHuntingQuery/index.js +9 -5
  73. package/security/microsoftGraphSecurityRunHuntingQuery/index.js.map +1 -1
  74. package/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1,72 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createTenantDataSecurityAndGovernanceFromDiscriminatorValue, serializeTenantDataSecurityAndGovernance } from '@microsoft/msgraph-sdk/models/index.js';
6
+ // @ts-ignore
7
+ import { createODataErrorFromDiscriminatorValue } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
8
+ // @ts-ignore
9
+ import { ProcessContentAsyncRequestBuilderRequestsMetadata } from './processContentAsync/index.js';
10
+ // @ts-ignore
11
+ import { ProtectionScopesRequestBuilderNavigationMetadata, ProtectionScopesRequestBuilderRequestsMetadata } from './protectionScopes/index.js';
12
+ /**
13
+ * Uri template for the request builder.
14
+ */
15
+ export const DataSecurityAndGovernanceRequestBuilderUriTemplate = "{+baseurl}/security/dataSecurityAndGovernance{?%24expand,%24select}";
16
+ /**
17
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
18
+ */
19
+ const DataSecurityAndGovernanceRequestBuilderGetQueryParametersMapper = {
20
+ "expand": "%24expand",
21
+ "select": "%24select",
22
+ };
23
+ /**
24
+ * Metadata for all the navigation properties in the request builder.
25
+ */
26
+ export const DataSecurityAndGovernanceRequestBuilderNavigationMetadata = {
27
+ processContentAsync: {
28
+ requestsMetadata: ProcessContentAsyncRequestBuilderRequestsMetadata,
29
+ },
30
+ protectionScopes: {
31
+ requestsMetadata: ProtectionScopesRequestBuilderRequestsMetadata,
32
+ navigationMetadata: ProtectionScopesRequestBuilderNavigationMetadata,
33
+ },
34
+ };
35
+ /**
36
+ * Metadata for all the requests in the request builder.
37
+ */
38
+ export const DataSecurityAndGovernanceRequestBuilderRequestsMetadata = {
39
+ delete: {
40
+ uriTemplate: DataSecurityAndGovernanceRequestBuilderUriTemplate,
41
+ responseBodyContentType: "application/json",
42
+ errorMappings: {
43
+ XXX: createODataErrorFromDiscriminatorValue,
44
+ },
45
+ adapterMethodName: "sendNoResponseContent",
46
+ },
47
+ get: {
48
+ uriTemplate: DataSecurityAndGovernanceRequestBuilderUriTemplate,
49
+ responseBodyContentType: "application/json",
50
+ errorMappings: {
51
+ XXX: createODataErrorFromDiscriminatorValue,
52
+ },
53
+ adapterMethodName: "send",
54
+ responseBodyFactory: createTenantDataSecurityAndGovernanceFromDiscriminatorValue,
55
+ queryParametersMapper: DataSecurityAndGovernanceRequestBuilderGetQueryParametersMapper,
56
+ },
57
+ patch: {
58
+ uriTemplate: DataSecurityAndGovernanceRequestBuilderUriTemplate,
59
+ responseBodyContentType: "application/json",
60
+ errorMappings: {
61
+ XXX: createODataErrorFromDiscriminatorValue,
62
+ },
63
+ adapterMethodName: "send",
64
+ responseBodyFactory: createTenantDataSecurityAndGovernanceFromDiscriminatorValue,
65
+ requestBodyContentType: "application/json",
66
+ requestBodySerializer: serializeTenantDataSecurityAndGovernance,
67
+ requestInformationContentSetMethod: "setContentFromParsable",
68
+ },
69
+ };
70
+ /* tslint:enable */
71
+ /* eslint-enable */
72
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,2DAA2D,EAAE,wCAAwC,EAAwC,MAAM,wCAAwC,CAAC;AACrM,aAAa;AACb,OAAO,EAAE,sCAAsC,EAAmB,MAAM,oDAAoD,CAAC;AAC7H,aAAa;AACb,OAAO,EAAE,iDAAiD,EAA0C,MAAM,gCAAgC,CAAC;AAC3I,aAAa;AACb,OAAO,EAAE,gDAAgD,EAAE,8CAA8C,EAAuC,MAAM,6BAA6B,CAAC;AAsEpL;;GAEG;AACH,MAAM,CAAC,MAAM,kDAAkD,GAAG,qEAAqE,CAAC;AACxI;;GAEG;AACH,MAAM,+DAA+D,GAA2B;IAC5F,QAAQ,EAAE,WAAW;IACrB,QAAQ,EAAE,WAAW;CACxB,CAAC;AACF;;GAEG;AACH,MAAM,CAAC,MAAM,yDAAyD,GAA2H;IAC7L,mBAAmB,EAAE;QACjB,gBAAgB,EAAE,iDAAiD;KACtE;IACD,gBAAgB,EAAE;QACd,gBAAgB,EAAE,8CAA8C;QAChE,kBAAkB,EAAE,gDAAgD;KACvE;CACJ,CAAC;AACF;;GAEG;AACH,MAAM,CAAC,MAAM,uDAAuD,GAAqB;IACrF,MAAM,EAAE;QACJ,WAAW,EAAE,kDAAkD;QAC/D,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,uBAAuB;KAC7C;IACD,GAAG,EAAE;QACD,WAAW,EAAE,kDAAkD;QAC/D,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,2DAA2D;QACjF,qBAAqB,EAAE,+DAA+D;KACzF;IACD,KAAK,EAAE;QACH,WAAW,EAAE,kDAAkD;QAC/D,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,2DAA2D;QACjF,sBAAsB,EAAE,kBAAkB;QAC1C,qBAAqB,EAAE,wCAAwC;QAC/D,kCAAkC,EAAE,wBAAwB;KAC/D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,85 @@
1
+ import { type BaseCollectionPaginationCountResponse, type ProcessContentBatchRequest, type ProcessContentResponses } from '@microsoft/msgraph-sdk/models/index.js';
2
+ import { type AdditionalDataHolder, type BackedModel, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Creates a new instance of the appropriate class based on discriminator value
5
+ * @param parseNode The parse node to use to read the discriminator value and create the object
6
+ * @returns {ProcessContentAsyncPostRequestBody}
7
+ */
8
+ export declare function createProcessContentAsyncPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
9
+ /**
10
+ * Creates a new instance of the appropriate class based on discriminator value
11
+ * @param parseNode The parse node to use to read the discriminator value and create the object
12
+ * @returns {ProcessContentAsyncPostResponse}
13
+ */
14
+ export declare function createProcessContentAsyncPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
15
+ /**
16
+ * The deserialization information for the current model
17
+ * @param ProcessContentAsyncPostRequestBody The instance to deserialize into.
18
+ * @returns {Record<string, (node: ParseNode) => void>}
19
+ */
20
+ export declare function deserializeIntoProcessContentAsyncPostRequestBody(processContentAsyncPostRequestBody?: Partial<ProcessContentAsyncPostRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
21
+ /**
22
+ * The deserialization information for the current model
23
+ * @param ProcessContentAsyncPostResponse The instance to deserialize into.
24
+ * @returns {Record<string, (node: ParseNode) => void>}
25
+ */
26
+ export declare function deserializeIntoProcessContentAsyncPostResponse(processContentAsyncPostResponse?: Partial<ProcessContentAsyncPostResponse> | undefined): Record<string, (node: ParseNode) => void>;
27
+ export interface ProcessContentAsyncPostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
28
+ /**
29
+ * Stores model information.
30
+ */
31
+ backingStoreEnabled?: boolean | null;
32
+ /**
33
+ * The processContentRequests property
34
+ */
35
+ processContentRequests?: ProcessContentBatchRequest[] | null;
36
+ }
37
+ export interface ProcessContentAsyncPostResponse extends BaseCollectionPaginationCountResponse, Parsable {
38
+ /**
39
+ * The value property
40
+ */
41
+ value?: ProcessContentResponses[] | null;
42
+ }
43
+ /**
44
+ * Provides operations to call the processContentAsync method.
45
+ */
46
+ export interface ProcessContentAsyncRequestBuilder extends BaseRequestBuilder<ProcessContentAsyncRequestBuilder> {
47
+ /**
48
+ * Invoke action processContentAsync
49
+ * @param body The request body
50
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
51
+ * @returns {Promise<ProcessContentAsyncPostResponse>}
52
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
53
+ */
54
+ post(body: ProcessContentAsyncPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ProcessContentAsyncPostResponse | undefined>;
55
+ /**
56
+ * Invoke action processContentAsync
57
+ * @param body The request body
58
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
59
+ * @returns {RequestInformation}
60
+ */
61
+ toPostRequestInformation(body: ProcessContentAsyncPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
62
+ }
63
+ /**
64
+ * Serializes information the current object
65
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
66
+ * @param ProcessContentAsyncPostRequestBody The instance to serialize from.
67
+ * @param writer Serialization writer to use to serialize this model
68
+ */
69
+ export declare function serializeProcessContentAsyncPostRequestBody(writer: SerializationWriter, processContentAsyncPostRequestBody?: Partial<ProcessContentAsyncPostRequestBody> | undefined | null, isSerializingDerivedType?: boolean): void;
70
+ /**
71
+ * Serializes information the current object
72
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
73
+ * @param ProcessContentAsyncPostResponse The instance to serialize from.
74
+ * @param writer Serialization writer to use to serialize this model
75
+ */
76
+ export declare function serializeProcessContentAsyncPostResponse(writer: SerializationWriter, processContentAsyncPostResponse?: Partial<ProcessContentAsyncPostResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
77
+ /**
78
+ * Uri template for the request builder.
79
+ */
80
+ export declare const ProcessContentAsyncRequestBuilderUriTemplate = "{+baseurl}/security/dataSecurityAndGovernance/processContentAsync";
81
+ /**
82
+ * Metadata for all the requests in the request builder.
83
+ */
84
+ export declare const ProcessContentAsyncRequestBuilderRequestsMetadata: RequestsMetadata;
85
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAA4R,KAAK,qCAAqC,EAAE,KAAK,0BAA0B,EAAE,KAAK,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAI7b,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,WAAW,EAAqB,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAwB,KAAK,SAAS,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAElS;;;;GAIG;AAEH,wBAAgB,8DAA8D,CAAC,SAAS,EAAE,SAAS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I,OAAO,CAAC,+BAA+B,GAAG,SAAS,CAAC,CAAC;IACxK;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI,EAAE,kCAAkC,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAC7J;AACD;;;;;GAKG;AAEH,wBAAgB,2CAA2C,CAAC,MAAM,EAAE,mBAAmB,EAAE,kCAAkC,GAAE,OAAO,CAAC,kCAAkC,CAAC,GAAG,SAAS,GAAG,IAAS,EAAE,wBAAwB,GAAE,OAAe,GAAI,IAAI,CAIlP;AACD;;;;;GAKG;AAEH,wBAAgB,wCAAwC,CAAC,MAAM,EAAE,mBAAmB,EAAE,+BAA+B,GAAE,OAAO,CAAC,+BAA+B,CAAC,GAAG,SAAS,GAAG,IAAS,EAAE,wBAAwB,GAAE,OAAe,GAAI,IAAI,CAIzO;AACD;;GAEG;AACH,eAAO,MAAM,4CAA4C,sEAAsE,CAAC;AAChI;;GAEG;AACH,eAAO,MAAM,iDAAiD,EAAE,gBAa/D,CAAC"}
@@ -0,0 +1,98 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createProcessContentBatchRequestFromDiscriminatorValue, createProcessContentResponsesFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, serializeProcessContentBatchRequest, serializeProcessContentResponses } from '@microsoft/msgraph-sdk/models/index.js';
6
+ // @ts-ignore
7
+ import { createODataErrorFromDiscriminatorValue } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
8
+ /**
9
+ * Creates a new instance of the appropriate class based on discriminator value
10
+ * @param parseNode The parse node to use to read the discriminator value and create the object
11
+ * @returns {ProcessContentAsyncPostRequestBody}
12
+ */
13
+ // @ts-ignore
14
+ export function createProcessContentAsyncPostRequestBodyFromDiscriminatorValue(parseNode) {
15
+ return deserializeIntoProcessContentAsyncPostRequestBody;
16
+ }
17
+ /**
18
+ * Creates a new instance of the appropriate class based on discriminator value
19
+ * @param parseNode The parse node to use to read the discriminator value and create the object
20
+ * @returns {ProcessContentAsyncPostResponse}
21
+ */
22
+ // @ts-ignore
23
+ export function createProcessContentAsyncPostResponseFromDiscriminatorValue(parseNode) {
24
+ return deserializeIntoProcessContentAsyncPostResponse;
25
+ }
26
+ /**
27
+ * The deserialization information for the current model
28
+ * @param ProcessContentAsyncPostRequestBody The instance to deserialize into.
29
+ * @returns {Record<string, (node: ParseNode) => void>}
30
+ */
31
+ // @ts-ignore
32
+ export function deserializeIntoProcessContentAsyncPostRequestBody(processContentAsyncPostRequestBody = {}) {
33
+ return {
34
+ "backingStoreEnabled": n => { processContentAsyncPostRequestBody.backingStoreEnabled = true; },
35
+ "processContentRequests": n => { processContentAsyncPostRequestBody.processContentRequests = n.getCollectionOfObjectValues(createProcessContentBatchRequestFromDiscriminatorValue); },
36
+ };
37
+ }
38
+ /**
39
+ * The deserialization information for the current model
40
+ * @param ProcessContentAsyncPostResponse The instance to deserialize into.
41
+ * @returns {Record<string, (node: ParseNode) => void>}
42
+ */
43
+ // @ts-ignore
44
+ export function deserializeIntoProcessContentAsyncPostResponse(processContentAsyncPostResponse = {}) {
45
+ return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(processContentAsyncPostResponse)), { "value": n => { processContentAsyncPostResponse.value = n.getCollectionOfObjectValues(createProcessContentResponsesFromDiscriminatorValue); } });
46
+ }
47
+ /**
48
+ * Serializes information the current object
49
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
50
+ * @param ProcessContentAsyncPostRequestBody The instance to serialize from.
51
+ * @param writer Serialization writer to use to serialize this model
52
+ */
53
+ // @ts-ignore
54
+ export function serializeProcessContentAsyncPostRequestBody(writer, processContentAsyncPostRequestBody = {}, isSerializingDerivedType = false) {
55
+ if (!processContentAsyncPostRequestBody || isSerializingDerivedType) {
56
+ return;
57
+ }
58
+ writer.writeCollectionOfObjectValues("processContentRequests", processContentAsyncPostRequestBody.processContentRequests, serializeProcessContentBatchRequest);
59
+ writer.writeAdditionalData(processContentAsyncPostRequestBody.additionalData);
60
+ }
61
+ /**
62
+ * Serializes information the current object
63
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
64
+ * @param ProcessContentAsyncPostResponse The instance to serialize from.
65
+ * @param writer Serialization writer to use to serialize this model
66
+ */
67
+ // @ts-ignore
68
+ export function serializeProcessContentAsyncPostResponse(writer, processContentAsyncPostResponse = {}, isSerializingDerivedType = false) {
69
+ if (!processContentAsyncPostResponse || isSerializingDerivedType) {
70
+ return;
71
+ }
72
+ serializeBaseCollectionPaginationCountResponse(writer, processContentAsyncPostResponse, isSerializingDerivedType);
73
+ writer.writeCollectionOfObjectValues("value", processContentAsyncPostResponse.value, serializeProcessContentResponses);
74
+ }
75
+ /**
76
+ * Uri template for the request builder.
77
+ */
78
+ export const ProcessContentAsyncRequestBuilderUriTemplate = "{+baseurl}/security/dataSecurityAndGovernance/processContentAsync";
79
+ /**
80
+ * Metadata for all the requests in the request builder.
81
+ */
82
+ export const ProcessContentAsyncRequestBuilderRequestsMetadata = {
83
+ post: {
84
+ uriTemplate: ProcessContentAsyncRequestBuilderUriTemplate,
85
+ responseBodyContentType: "application/json",
86
+ errorMappings: {
87
+ XXX: createODataErrorFromDiscriminatorValue,
88
+ },
89
+ adapterMethodName: "send",
90
+ responseBodyFactory: createProcessContentAsyncPostResponseFromDiscriminatorValue,
91
+ requestBodyContentType: "application/json",
92
+ requestBodySerializer: serializeProcessContentAsyncPostRequestBody,
93
+ requestInformationContentSetMethod: "setContentFromParsable",
94
+ },
95
+ };
96
+ /* tslint:enable */
97
+ /* eslint-enable */
98
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa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,kCAAkC,CAAC,sBAAsB,EAAE,mCAAmC,CAAC,CAAC;IAC3L,MAAM,CAAC,mBAAmB,CAAC,kCAAkC,CAAC,cAAc,CAAC,CAAC;AAClF,CAAC;AACD;;;;;GAKG;AACH,aAAa;AACb,MAAM,UAAU,wCAAwC,CAAC,MAA2B,EAAE,kCAA+F,EAAE,EAAE,2BAAoC,KAAK;IAC9N,IAAI,CAAC,+BAA+B,IAAI,wBAAwB,EAAE,CAAC;QAAC,OAAO;IAAC,CAAC;IAC7E,8CAA8C,CAAC,MAAM,EAAE,+BAA+B,EAAE,wBAAwB,CAAC,CAAA;IACjH,MAAM,CAAC,6BAA6B,CAA0B,OAAO,EAAE,+BAA+B,CAAC,KAAK,EAAE,gCAAgC,CAAC,CAAC;AACpJ,CAAC;AACD;;GAEG;AACH,MAAM,CAAC,MAAM,4CAA4C,GAAG,mEAAmE,CAAC;AAChI;;GAEG;AACH,MAAM,CAAC,MAAM,iDAAiD,GAAqB;IAC/E,IAAI,EAAE;QACF,WAAW,EAAE,4CAA4C;QACzD,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,2DAA2D;QACjF,sBAAsB,EAAE,kBAAkB;QAC1C,qBAAqB,EAAE,2CAA2C;QAClE,kCAAkC,EAAE,wBAAwB;KAC/D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,101 @@
1
+ import { PolicyPivotProperty, type BaseCollectionPaginationCountResponse, type DeviceMetadata, type IntegratedApplicationMetadata, type PolicyLocation, type PolicyTenantScope, UserActivityTypes } from '@microsoft/msgraph-sdk/models/index.js';
2
+ import { type AdditionalDataHolder, type BackedModel, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
3
+ export interface ComputePostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
4
+ /**
5
+ * The activities property
6
+ */
7
+ activities?: UserActivityTypes[] | null;
8
+ /**
9
+ * Stores model information.
10
+ */
11
+ backingStoreEnabled?: boolean | null;
12
+ /**
13
+ * The deviceMetadata property
14
+ */
15
+ deviceMetadata?: DeviceMetadata | null;
16
+ /**
17
+ * The integratedAppMetadata property
18
+ */
19
+ integratedAppMetadata?: IntegratedApplicationMetadata | null;
20
+ /**
21
+ * The locations property
22
+ */
23
+ locations?: PolicyLocation[] | null;
24
+ /**
25
+ * The pivotOn property
26
+ */
27
+ pivotOn?: PolicyPivotProperty | null;
28
+ }
29
+ export interface ComputePostResponse extends BaseCollectionPaginationCountResponse, Parsable {
30
+ /**
31
+ * The value property
32
+ */
33
+ value?: PolicyTenantScope[] | null;
34
+ }
35
+ /**
36
+ * Provides operations to call the compute method.
37
+ */
38
+ export interface ComputeRequestBuilder extends BaseRequestBuilder<ComputeRequestBuilder> {
39
+ /**
40
+ * Invoke action compute
41
+ * @param body The request body
42
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
43
+ * @returns {Promise<ComputePostResponse>}
44
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
45
+ */
46
+ post(body: ComputePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ComputePostResponse | undefined>;
47
+ /**
48
+ * Invoke action compute
49
+ * @param body The request body
50
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
51
+ * @returns {RequestInformation}
52
+ */
53
+ toPostRequestInformation(body: ComputePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
54
+ }
55
+ /**
56
+ * Creates a new instance of the appropriate class based on discriminator value
57
+ * @param parseNode The parse node to use to read the discriminator value and create the object
58
+ * @returns {ComputePostRequestBody}
59
+ */
60
+ export declare function createComputePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
61
+ /**
62
+ * Creates a new instance of the appropriate class based on discriminator value
63
+ * @param parseNode The parse node to use to read the discriminator value and create the object
64
+ * @returns {ComputePostResponse}
65
+ */
66
+ export declare function createComputePostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
67
+ /**
68
+ * The deserialization information for the current model
69
+ * @param ComputePostRequestBody The instance to deserialize into.
70
+ * @returns {Record<string, (node: ParseNode) => void>}
71
+ */
72
+ export declare function deserializeIntoComputePostRequestBody(computePostRequestBody?: Partial<ComputePostRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
73
+ /**
74
+ * The deserialization information for the current model
75
+ * @param ComputePostResponse The instance to deserialize into.
76
+ * @returns {Record<string, (node: ParseNode) => void>}
77
+ */
78
+ export declare function deserializeIntoComputePostResponse(computePostResponse?: Partial<ComputePostResponse> | undefined): Record<string, (node: ParseNode) => void>;
79
+ /**
80
+ * Serializes information the current object
81
+ * @param ComputePostRequestBody The instance to serialize from.
82
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
83
+ * @param writer Serialization writer to use to serialize this model
84
+ */
85
+ export declare function serializeComputePostRequestBody(writer: SerializationWriter, computePostRequestBody?: Partial<ComputePostRequestBody> | undefined | null, isSerializingDerivedType?: boolean): void;
86
+ /**
87
+ * Serializes information the current object
88
+ * @param ComputePostResponse The instance to serialize from.
89
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
90
+ * @param writer Serialization writer to use to serialize this model
91
+ */
92
+ export declare function serializeComputePostResponse(writer: SerializationWriter, computePostResponse?: Partial<ComputePostResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
93
+ /**
94
+ * Uri template for the request builder.
95
+ */
96
+ export declare const ComputeRequestBuilderUriTemplate = "{+baseurl}/security/dataSecurityAndGovernance/protectionScopes/compute";
97
+ /**
98
+ * Metadata for all the requests in the request builder.
99
+ */
100
+ export declare const ComputeRequestBuilderRequestsMetadata: RequestsMetadata;
101
+ //# sourceM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,mBAAmB,EAAE,mBAAmB,GAAE,OAAO,CAAC,mBAAmB,CAAC,GAAG,SAAS,GAAG,IAAS,EAAE,wBAAwB,GAAE,OAAe,GAAI,IAAI,CAIrM;AACD;;GAEG;AACH,eAAO,MAAM,gCAAgC,2EAA2E,CAAC;AACzH;;GAEG;AACH,eAAO,MAAM,qCAAqC,EAAE,gBAanD,CAAC"}
@@ -0,0 +1,106 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createDeviceMetadataFromDiscriminatorValue, createIntegratedApplicationMetadataFromDiscriminatorValue, createPolicyLocationFromDiscriminatorValue, createPolicyTenantScopeFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, PolicyPivotPropertyObject, serializeBaseCollectionPaginationCountResponse, serializeDeviceMetadata, serializeIntegratedApplicationMetadata, serializePolicyLocation, serializePolicyTenantScope, UserActivityTypesObject } from '@microsoft/msgraph-sdk/models/index.js';
6
+ // @ts-ignore
7
+ import { createODataErrorFromDiscriminatorValue } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
8
+ /**
9
+ * Creates a new instance of the appropriate class based on discriminator value
10
+ * @param parseNode The parse node to use to read the discriminator value and create the object
11
+ * @returns {ComputePostRequestBody}
12
+ */
13
+ // @ts-ignore
14
+ export function createComputePostRequestBodyFromDiscriminatorValue(parseNode) {
15
+ return deserializeIntoComputePostRequestBody;
16
+ }
17
+ /**
18
+ * Creates a new instance of the appropriate class based on discriminator value
19
+ * @param parseNode The parse node to use to read the discriminator value and create the object
20
+ * @returns {ComputePostResponse}
21
+ */
22
+ // @ts-ignore
23
+ export function createComputePostResponseFromDiscriminatorValue(parseNode) {
24
+ return deserializeIntoComputePostResponse;
25
+ }
26
+ /**
27
+ * The deserialization information for the current model
28
+ * @param ComputePostRequestBody The instance to deserialize into.
29
+ * @returns {Record<string, (node: ParseNode) => void>}
30
+ */
31
+ // @ts-ignore
32
+ export function deserializeIntoComputePostRequestBody(computePostRequestBody = {}) {
33
+ return {
34
+ "activities": n => { computePostRequestBody.activities = n.getCollectionOfEnumValues(UserActivityTypesObject); },
35
+ "backingStoreEnabled": n => { computePostRequestBody.backingStoreEnabled = true; },
36
+ "deviceMetadata": n => { computePostRequestBody.deviceMetadata = n.getObjectValue(createDeviceMetadataFromDiscriminatorValue); },
37
+ "integratedAppMetadata": n => { computePostRequestBody.integratedAppMetadata = n.getObjectValue(createIntegratedApplicationMetadataFromDiscriminatorValue); },
38
+ "locations": n => { computePostRequestBody.locations = n.getCollectionOfObjectValues(createPolicyLocationFromDiscriminatorValue); },
39
+ "pivotOn": n => { computePostRequestBody.pivotOn = n.getEnumValue(PolicyPivotPropertyObject); },
40
+ };
41
+ }
42
+ /**
43
+ * The deserialization information for the current model
44
+ * @param ComputePostResponse The instance to deserialize into.
45
+ * @returns {Record<string, (node: ParseNode) => void>}
46
+ */
47
+ // @ts-ignore
48
+ export function deserializeIntoComputePostResponse(computePostResponse = {}) {
49
+ return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(computePostResponse)), { "value": n => { computePostResponse.value = n.getCollectionOfObjectValues(createPolicyTenantScopeFromDiscriminatorValue); } });
50
+ }
51
+ /**
52
+ * Serializes information the current object
53
+ * @param ComputePostRequestBody The instance to serialize from.
54
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
55
+ * @param writer Serialization writer to use to serialize this model
56
+ */
57
+ // @ts-ignore
58
+ export function serializeComputePostRequestBody(writer, computePostRequestBody = {}, isSerializingDerivedType = false) {
59
+ if (!computePostRequestBody || isSerializingDerivedType) {
60
+ return;
61
+ }
62
+ writer.writeEnumValue("activities", computePostRequestBody.activities);
63
+ writer.writeObjectValue("deviceMetadata", computePostRequestBody.deviceMetadata, serializeDeviceMetadata);
64
+ writer.writeObjectValue("integratedAppMetadata", computePostRequestBody.integratedAppMetadata, serializeIntegratedApplicationMetadata);
65
+ writer.writeCollectionOfObjectValues("locations", computePostRequestBody.locations, serializePolicyLocation);
66
+ writer.writeEnumValue("pivotOn", computePostRequestBody.pivotOn);
67
+ writer.writeAdditionalData(computePostRequestBody.additionalData);
68
+ }
69
+ /**
70
+ * Serializes information the current object
71
+ * @param ComputePostResponse The instance to serialize from.
72
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
73
+ * @param writer Serialization writer to use to serialize this model
74
+ */
75
+ // @ts-ignore
76
+ export function serializeComputePostResponse(writer, computePostResponse = {}, isSerializingDerivedType = false) {
77
+ if (!computePostResponse || isSerializingDerivedType) {
78
+ return;
79
+ }
80
+ serializeBaseCollectionPaginationCountResponse(writer, computePostResponse, isSerializingDerivedType);
81
+ writer.writeCollectionOfObjectValues("value", computePostResponse.value, serializePolicyTenantScope);
82
+ }
83
+ /**
84
+ * Uri template for the request builder.
85
+ */
86
+ export const ComputeRequestBuilderUriTemplate = "{+baseurl}/security/dataSecurityAndGovernance/protectionScopes/compute";
87
+ /**
88
+ * Metadata for all the requests in the request builder.
89
+ */
90
+ export const ComputeRequestBuilderRequestsMetadata = {
91
+ post: {
92
+ uriTemplate: ComputeRequestBuilderUriTemplate,
93
+ responseBodyContentType: "application/json",
94
+ errorMappings: {
95
+ XXX: createODataErrorFromDiscriminatorValue,
96
+ },
97
+ adapterMethodName: "send",
98
+ responseBodyFactory: createComputePostResponseFromDiscriminatorValue,
99
+ requestBodyContentType: "application/json",
100
+ requestBodySerializer: serializeComputePostRequestBody,
101
+ requestInformationContentSetMethod: "setContentFromParsable",
102
+ },
103
+ };
104
+ /* tslint:enable */
105
+ /* eslint-enable */
106
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,0CAA0C,EAAE,yDAAyD,EAAE,0CAA0C,EAAE,6CAA6C,EAAE,oDAAoD,EAAuB,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ACrG,MAAM,CAAC,6BAA6B,CAAoB,OAAO,EAAE,mBAAmB,CAAC,KAAK,EAAE,0BAA0B,CAAC,CAAC;AAC5H,CAAC;AACD;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,wEAAwE,CAAC;AACzH;;GAEG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAqB;IACnE,IAAI,EAAE;QACF,WAAW,EAAE,gCAAgC;QAC7C,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,+CAA+C;QACrE,sBAAsB,EAAE,kBAAkB;QAC1C,qBAAqB,EAAE,+BAA+B;QACtD,kCAAkC,EAAE,wBAAwB;KAC/D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,78 @@
1
+ import { type TenantProtectionScopeContainer } from '@microsoft/msgraph-sdk/models/index.js';
2
+ import { type ComputeRequestBuilder } from './compute/index.js';
3
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
4
+ /**
5
+ * Provides operations to manage the protectionScopes property of the microsoft.graph.tenantDataSecurityAndGovernance entity.
6
+ */
7
+ export interface ProtectionScopesRequestBuilder extends BaseRequestBuilder<ProtectionScopesRequestBuilder> {
8
+ /**
9
+ * Provides operations to call the compute method.
10
+ */
11
+ get compute(): ComputeRequestBuilder;
12
+ /**
13
+ * Delete navigation property protectionScopes for security
14
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
15
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
16
+ */
17
+ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
18
+ /**
19
+ * Container for actions related to computing tenant-wide data protection scopes.
20
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
21
+ * @returns {Promise<TenantProtectionScopeContainer>}
22
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
23
+ */
24
+ get(requestConfiguration?: RequestConfiguration<ProtectionScopesRequestBuilderGetQueryParameters> | undefined): Promise<TenantProtectionScopeContainer | undefined>;
25
+ /**
26
+ * Update the navigation property protectionScopes in security
27
+ * @param body The request body
28
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
29
+ * @returns {Promise<TenantProtectionScopeContainer>}
30
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
31
+ */
32
+ patch(body: TenantProtectionScopeContainer, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<TenantProtectionScopeContainer | undefined>;
33
+ /**
34
+ * Delete navigation property protectionScopes for security
35
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
36
+ * @returns {RequestInformation}
37
+ */
38
+ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
39
+ /**
40
+ * Container for actions related to computing tenant-wide data protection scopes.
41
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
42
+ * @returns {RequestInformation}
43
+ */
44
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<ProtectionScopesRequestBuilderGetQueryParameters> | undefined): RequestInformation;
45
+ /**
46
+ * Update the navigation property protectionScopes in security
47
+ * @param body The request body
48
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
49
+ * @returns {RequestInformation}
50
+ */
51
+ toPatchRequestInformation(body: TenantProtectionScopeContainer, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
52
+ }
53
+ /**
54
+ * Container for actions related to computing tenant-wide data protection scopes.
55
+ */
56
+ export interface ProtectionScopesRequestBuilderGetQueryParameters {
57
+ /**
58
+ * Expand related entities
59
+ */
60
+ expand?: string[];
61
+ /**
62
+ * Select properties to be returned
63
+ */
64
+ select?: string[];
65
+ }
66
+ /**
67
+ * Uri template for the request builder.
68
+ */
69
+ export declare const ProtectionScopesRequestBuilderUriTemplate = "{+baseurl}/security/dataSecurityAndGovernance/protectionScopes{?%24expand,%24select}";
70
+ /**
71
+ * Metadata for all the navigation properties in the request builder.
72
+ */
73
+ export declare const ProtectionScopesRequestBuilderNavigationMetadata: Record<Exclude<keyof ProtectionScopesRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
74
+ /**
75
+ * Metadata for all the requests in the request builder.
76
+ */
77
+ export declare const ProtectionScopesRequestBuilderRequestsMetadata: RequestsMetadata;
78
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAuG,KAAK,8BAA8B,EAAE,MAAM,wCAAwC,CAAC;AAIlM,OAAO,EAAyC,KAAK,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEvG,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE1P;;GAEG;AACH,MAAM,WAAW,8BAA+B,SAAQ,kBAAkB,CAAC,8BAA8B,CAAC;IACtG;;OAEG;IACH,IAAI,OAAO,IAAI,qBAAqB,CAAC;IACrC;;;;OAIG;IACF,MAAM,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACzF;;;;;OAKG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,gDAAgD,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,8BAA8B,GAAG,SAAS,CAAC,CAAC;IACtK;;;;;;OAMG;IACF,KAAK,CAAC,IAAI,EAAE,8BAA8B,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,8BAA8B,GAAG,SAAS,CAAC,CAAC;IACpK;;;;OAIG;IACF,0BAA0B,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;IAClH;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,gDAAgD,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;IACzJ;;;;;OAKG;IACF,yBAAyB,CAAC,IAAI,EAAE,8BAA8B,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAC1J;AACD;;GAEG;AACH,MAAM,WAAW,gDAAgD;IAC7D;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AACD;;GAEG;AACH,eAAO,MAAM,yCAAyC,yFAAyF,CAAC;AAQhJ;;GAEG;AACH,eAAO,MAAM,gDAAgD,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,8BAA8B,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAI1K,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,8CAA8C,EAAE,gBA+B5D,CAAC"}
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createTenantProtectionScopeContainerFromDiscriminatorValue, serializeTenantProtectionScopeContainer } from '@microsoft/msgraph-sdk/models/index.js';
6
+ // @ts-ignore
7
+ import { createODataErrorFromDiscriminatorValue } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
8
+ // @ts-ignore
9
+ import { ComputeRequestBuilderRequestsMetadata } from './compute/index.js';
10
+ /**
11
+ * Uri template for the request builder.
12
+ */
13
+ export const ProtectionScopesRequestBuilderUriTemplate = "{+baseurl}/security/dataSecurityAndGovernance/protectionScopes{?%24expand,%24select}";
14
+ /**
15
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
16
+ */
17
+ const ProtectionScopesRequestBuilderGetQueryParametersMapper = {
18
+ "expand": "%24expand",
19
+ "select": "%24select",
20
+ };
21
+ /**
22
+ * Metadata for all the navigation properties in the request builder.
23
+ */
24
+ export const ProtectionScopesRequestBuilderNavigationMetadata = {
25
+ compute: {
26
+ requestsMetadata: ComputeRequestBuilderRequestsMetadata,
27
+ },
28
+ };
29
+ /**
30
+ * Metadata for all the requests in the request builder.
31
+ */
32
+ export const ProtectionScopesRequestBuilderRequestsMetadata = {
33
+ delete: {
34
+ uriTemplate: ProtectionScopesRequestBuilderUriTemplate,
35
+ responseBodyContentType: "application/json",
36
+ errorMappings: {
37
+ XXX: createODataErrorFromDiscriminatorValue,
38
+ },
39
+ adapterMethodName: "sendNoResponseContent",
40
+ },
41
+ get: {
42
+ uriTemplate: ProtectionScopesRequestBuilderUriTemplate,
43
+ responseBodyContentType: "application/json",
44
+ errorMappings: {
45
+ XXX: createODataErrorFromDiscriminatorValue,
46
+ },
47
+ adapterMethodName: "send",
48
+ responseBodyFactory: createTenantProtectionScopeContainerFromDiscriminatorValue,
49
+ queryParametersMapper: ProtectionScopesRequestBuilderGetQueryParametersMapper,
50
+ },
51
+ patch: {
52
+ uriTemplate: ProtectionScopesRequestBuilderUriTemplate,
53
+ responseBodyContentType: "application/json",
54
+ errorMappings: {
55
+ XXX: createODataErrorFromDiscriminatorValue,
56
+ },
57
+ adapterMethodName: "send",
58
+ responseBodyFactory: createTenantProtectionScopeContainerFromDiscriminatorValue,
59
+ requestBodyContentType: "application/json",
60
+ requestBodySerializer: serializeTenantProtectionScopeContainer,
61
+ requestInformationContentSetMethod: "setContentFromParsable",
62
+ },
63
+ };
64
+ /* tslint:enable */
65
+ /* eslint-enable */
66
+ //# sourceMappingURL=index.js.map