@microsoft/msgraph-sdk-security 1.0.0-preview.74 → 1.0.0-preview.75

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 (42) hide show
  1. package/package.json +2 -2
  2. package/security/identities/identityAccounts/count/index.d.ts +41 -0
  3. package/security/identities/identityAccounts/count/index.d.ts.map +1 -0
  4. package/security/identities/identityAccounts/count/index.js +34 -0
  5. package/security/identities/identityAccounts/count/index.js.map +1 -0
  6. package/security/identities/identityAccounts/index.d.ts +98 -0
  7. package/security/identities/identityAccounts/index.d.ts.map +1 -0
  8. package/security/identities/identityAccounts/index.js +71 -0
  9. package/security/identities/identityAccounts/index.js.map +1 -0
  10. package/security/identities/identityAccounts/item/index.d.ts +79 -0
  11. package/security/identities/identityAccounts/item/index.d.ts.map +1 -0
  12. package/security/identities/identityAccounts/item/index.js +66 -0
  13. package/security/identities/identityAccounts/item/index.js.map +1 -0
  14. package/security/identities/identityAccounts/item/microsoftGraphSecurityInvokeAction/index.d.ts +69 -0
  15. package/security/identities/identityAccounts/item/microsoftGraphSecurityInvokeAction/index.d.ts.map +1 -0
  16. package/security/identities/identityAccounts/item/microsoftGraphSecurityInvokeAction/index.js +70 -0
  17. package/security/identities/identityAccounts/item/microsoftGraphSecurityInvokeAction/index.js.map +1 -0
  18. package/security/identities/index.d.ts +15 -0
  19. package/security/identities/index.d.ts.map +1 -1
  20. package/security/identities/index.js +17 -0
  21. package/security/identities/index.js.map +1 -1
  22. package/security/identities/sensorCandidateActivationConfiguration/index.d.ts +70 -0
  23. package/security/identities/sensorCandidateActivationConfiguration/index.d.ts.map +1 -0
  24. package/security/identities/sensorCandidateActivationConfiguration/index.js +56 -0
  25. package/security/identities/sensorCandidateActivationConfiguration/index.js.map +1 -0
  26. package/security/identities/sensorCandidates/count/index.d.ts +41 -0
  27. package/security/identities/sensorCandidates/count/index.d.ts.map +1 -0
  28. package/security/identities/sensorCandidates/count/index.js +34 -0
  29. package/security/identities/sensorCandidates/count/index.js.map +1 -0
  30. package/security/identities/sensorCandidates/index.d.ts +103 -0
  31. package/security/identities/sensorCandidates/index.d.ts.map +1 -0
  32. package/security/identities/sensorCandidates/index.js +75 -0
  33. package/security/identities/sensorCandidates/index.js.map +1 -0
  34. package/security/identities/sensorCandidates/item/index.d.ts +69 -0
  35. package/security/identities/sensorCandidates/item/index.d.ts.map +1 -0
  36. package/security/identities/sensorCandidates/item/index.js +56 -0
  37. package/security/identities/sensorCandidates/item/index.js.map +1 -0
  38. package/security/identities/sensorCandidates/microsoftGraphSecurityActivate/index.d.ts +58 -0
  39. package/security/identities/sensorCandidates/microsoftGraphSecurityActivate/index.d.ts.map +1 -0
  40. package/security/identities/sensorCandidates/microsoftGraphSecurityActivate/index.js +63 -0
  41. package/security/identities/sensorCandidates/microsoftGraphSecurityActivate/index.js.map +1 -0
  42. package/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1,58 @@
1
+ import { type AdditionalDataHolder, type BackedModel, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
2
+ export interface ActivatePostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
3
+ /**
4
+ * Stores model information.
5
+ */
6
+ backingStoreEnabled?: boolean | null;
7
+ /**
8
+ * The serverIds property
9
+ */
10
+ serverIds?: string[] | null;
11
+ }
12
+ /**
13
+ * Creates a new instance of the appropriate class based on discriminator value
14
+ * @param parseNode The parse node to use to read the discriminator value and create the object
15
+ * @returns {ActivatePostRequestBody}
16
+ */
17
+ export declare function createActivatePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
18
+ /**
19
+ * The deserialization information for the current model
20
+ * @param ActivatePostRequestBody The instance to deserialize into.
21
+ * @returns {Record<string, (node: ParseNode) => void>}
22
+ */
23
+ export declare function deserializeIntoActivatePostRequestBody(activatePostRequestBody?: Partial<ActivatePostRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
24
+ /**
25
+ * Provides operations to call the activate method.
26
+ */
27
+ export interface MicrosoftGraphSecurityActivateRequestBuilder extends BaseRequestBuilder<MicrosoftGraphSecurityActivateRequestBuilder> {
28
+ /**
29
+ * Activate Microsoft Defender for Identity sensors.
30
+ * @param body The request body
31
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
32
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
33
+ */
34
+ post(body: ActivatePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
35
+ /**
36
+ * Activate Microsoft Defender for Identity sensors.
37
+ * @param body The request body
38
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
39
+ * @returns {RequestInformation}
40
+ */
41
+ toPostRequestInformation(body: ActivatePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
42
+ }
43
+ /**
44
+ * Serializes information the current object
45
+ * @param ActivatePostRequestBody The instance to serialize from.
46
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
47
+ * @param writer Serialization writer to use to serialize this model
48
+ */
49
+ export declare function serializeActivatePostRequestBody(writer: SerializationWriter, activatePostRequestBody?: Partial<ActivatePostRequestBody> | undefined | null, isSerializingDerivedType?: boolean): void;
50
+ /**
51
+ * Uri template for the request builder.
52
+ */
53
+ export declare const MicrosoftGraphSecurityActivateRequestBuilderUriTemplate = "{+baseurl}/security/identities/sensorCandidates/microsoft.graph.security.activate";
54
+ /**
55
+ * Metadata for all the requests in the request builder.
56
+ */
57
+ export declare const MicrosoftGraphSecurityActivateRequestBuilderRequestsMetadata: RequestsMetadata;
58
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,WAAW,EAAqB,KAAK,kBAAkB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GAAG,IAAS,EAAE,wBAAwB,GAAE,OAAe,GAAI,IAAI,CAIjN;AACD;;GAEG;AACH,eAAO,MAAM,uDAAuD,sFAAsF,CAAC;AAC3J;;GAEG;AACH,eAAO,MAAM,4DAA4D,EAAE,gBAY1E,CAAC"}
@@ -0,0 +1,63 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createODataErrorFromDiscriminatorValue } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
6
+ /**
7
+ * Creates a new instance of the appropriate class based on discriminator value
8
+ * @param parseNode The parse node to use to read the discriminator value and create the object
9
+ * @returns {ActivatePostRequestBody}
10
+ */
11
+ // @ts-ignore
12
+ export function createActivatePostRequestBodyFromDiscriminatorValue(parseNode) {
13
+ return deserializeIntoActivatePostRequestBody;
14
+ }
15
+ /**
16
+ * The deserialization information for the current model
17
+ * @param ActivatePostRequestBody The instance to deserialize into.
18
+ * @returns {Record<string, (node: ParseNode) => void>}
19
+ */
20
+ // @ts-ignore
21
+ export function deserializeIntoActivatePostRequestBody(activatePostRequestBody = {}) {
22
+ return {
23
+ "backingStoreEnabled": n => { activatePostRequestBody.backingStoreEnabled = true; },
24
+ "serverIds": n => { activatePostRequestBody.serverIds = n.getCollectionOfPrimitiveValues(); },
25
+ };
26
+ }
27
+ /**
28
+ * Serializes information the current object
29
+ * @param ActivatePostRequestBody The instance to serialize from.
30
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
31
+ * @param writer Serialization writer to use to serialize this model
32
+ */
33
+ // @ts-ignore
34
+ export function serializeActivatePostRequestBody(writer, activatePostRequestBody = {}, isSerializingDerivedType = false) {
35
+ if (!activatePostRequestBody || isSerializingDerivedType) {
36
+ return;
37
+ }
38
+ writer.writeCollectionOfPrimitiveValues("serverIds", activatePostRequestBody.serverIds);
39
+ writer.writeAdditionalData(activatePostRequestBody.additionalData);
40
+ }
41
+ /**
42
+ * Uri template for the request builder.
43
+ */
44
+ export const MicrosoftGraphSecurityActivateRequestBuilderUriTemplate = "{+baseurl}/security/identities/sensorCandidates/microsoft.graph.security.activate";
45
+ /**
46
+ * Metadata for all the requests in the request builder.
47
+ */
48
+ export const MicrosoftGraphSecurityActivateRequestBuilderRequestsMetadata = {
49
+ post: {
50
+ uriTemplate: MicrosoftGraphSecurityActivateRequestBuilderUriTemplate,
51
+ responseBodyContentType: "application/json",
52
+ errorMappings: {
53
+ XXX: createODataErrorFromDiscriminatorValue,
54
+ },
55
+ adapterMethodName: "sendNoResponseContent",
56
+ requestBodyContentType: "application/json",
57
+ requestBodySerializer: serializeActivatePostRequestBody,
58
+ requestInformationContentSetMethod: "setContentFromParsable",
59
+ },
60
+ };
61
+ /* tslint:enable */
62
+ /* eslint-enable */
63
+ //# 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,sCAAsC,EAAmB,MAAM,oDAAoD,CAAC;AAc7H;;;;GAIG;AACH,aAAa;AACb,MAAM,UAAU,mDAAmD,CAAC,SAAgC;IAChG,OAAO,sCAAsC,CAAC;AAClD,CAAC;AACD;;;;GAIG;AACH,aAAa;AACb,MAAM,UAAU,sCAAsC,CAAC,0BAAwE,EAAE;IAC7H,OAAO;QACH,qBAAqB,EAAE,CAAC,CAAC,EAAE,GAAG,uBAAuB,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC,CAAC;QACnF,WAAW,EAAE,CAAC,CAAC,EAAE,GAAG,uBAAuB,CAAC,SAAS,GAAG,CAAC,CAAC,8BAA8B,EAAU,CAAC,CAAC,CAAC;KACxG,CAAA;AACL,CAAC;AAoBD;;;;;GAKG;AACH,aAAa;AACb,MAAM,UAAU,gCAAgC,CAAC,MAA2B,EAAE,0BAA+E,EAAE,EAAE,2BAAoC,KAAK;IACtM,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