@microsoft/msgraph-sdk 1.0.0-preview.24 → 1.0.0-preview.26

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.
@@ -44,6 +44,10 @@ export function createAlertEvidenceFromDiscriminatorValue(parseNode) {
44
44
  return deserializeIntoBlobEvidence;
45
45
  case "#microsoft.graph.security.cloudApplicationEvidence":
46
46
  return deserializeIntoCloudApplicationEvidence;
47
+ case "#microsoft.graph.security.cloudLogonRequestEvidence":
48
+ return deserializeIntoCloudLogonRequestEvidence;
49
+ case "#microsoft.graph.security.cloudLogonSessionEvidence":
50
+ return deserializeIntoCloudLogonSessionEvidence;
47
51
  case "#microsoft.graph.security.containerEvidence":
48
52
  return deserializeIntoContainerEvidence;
49
53
  case "#microsoft.graph.security.containerImageEvidence":
@@ -373,6 +377,22 @@ export function createCitationTemplateFromDiscriminatorValue(parseNode) {
373
377
  export function createCloudApplicationEvidenceFromDiscriminatorValue(parseNode) {
374
378
  return deserializeIntoCloudApplicationEvidence;
375
379
  }
380
+ /**
381
+ * Creates a new instance of the appropriate class based on discriminator value
382
+ * @param parseNode The parse node to use to read the discriminator value and create the object
383
+ * @returns {CloudLogonRequestEvidence}
384
+ */
385
+ export function createCloudLogonRequestEvidenceFromDiscriminatorValue(parseNode) {
386
+ return deserializeIntoCloudLogonRequestEvidence;
387
+ }
388
+ /**
389
+ * Creates a new instance of the appropriate class based on discriminator value
390
+ * @param parseNode The parse node to use to read the discriminator value and create the object
391
+ * @returns {CloudLogonSessionEvidence}
392
+ */
393
+ export function createCloudLogonSessionEvidenceFromDiscriminatorValue(parseNode) {
394
+ return deserializeIntoCloudLogonSessionEvidence;
395
+ }
376
396
  /**
377
397
  * Creates a new instance of the appropriate class based on discriminator value
378
398
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -2146,6 +2166,20 @@ export function deserializeIntoCitationTemplateCollectionResponse(citationTempla
2146
2166
  export function deserializeIntoCloudApplicationEvidence(cloudApplicationEvidence = {}) {
2147
2167
  return Object.assign(Object.assign({}, deserializeIntoAlertEvidence(cloudApplicationEvidence)), { "appId": n => { cloudApplicationEvidence.appId = n.getNumberValue(); }, "displayName": n => { cloudApplicationEvidence.displayName = n.getStringValue(); }, "instanceId": n => { cloudApplicationEvidence.instanceId = n.getNumberValue(); }, "instanceName": n => { cloudApplicationEvidence.instanceName = n.getStringValue(); }, "saasAppId": n => { cloudApplicationEvidence.saasAppId = n.getNumberValue(); }, "stream": n => { cloudApplicationEvidence.stream = n.getObjectValue(createStreamFromDiscriminatorValue); } });
2148
2168
  }
2169
+ /**
2170
+ * The deserialization information for the current model
2171
+ * @returns {Record<string, (node: ParseNode) => void>}
2172
+ */
2173
+ export function deserializeIntoCloudLogonRequestEvidence(cloudLogonRequestEvidence = {}) {
2174
+ return Object.assign(Object.assign({}, deserializeIntoAlertEvidence(cloudLogonRequestEvidence)), { "requestId": n => { cloudLogonRequestEvidence.requestId = n.getStringValue(); } });
2175
+ }
2176
+ /**
2177
+ * The deserialization information for the current model
2178
+ * @returns {Record<string, (node: ParseNode) => void>}
2179
+ */
2180
+ export function deserializeIntoCloudLogonSessionEvidence(cloudLogonSessionEvidence = {}) {
2181
+ return Object.assign(Object.assign({}, deserializeIntoAlertEvidence(cloudLogonSessionEvidence)), { "account": n => { cloudLogonSessionEvidence.account = n.getObjectValue(createUserEvidenceFromDiscriminatorValue); }, "browser": n => { cloudLogonSessionEvidence.browser = n.getStringValue(); }, "deviceName": n => { cloudLogonSessionEvidence.deviceName = n.getStringValue(); }, "operatingSystem": n => { cloudLogonSessionEvidence.operatingSystem = n.getStringValue(); }, "previousLogonDateTime": n => { cloudLogonSessionEvidence.previousLogonDateTime = n.getDateValue(); }, "protocol": n => { cloudLogonSessionEvidence.protocol = n.getStringValue(); }, "sessionId": n => { cloudLogonSessionEvidence.sessionId = n.getStringValue(); }, "startUtcDateTime": n => { cloudLogonSessionEvidence.startUtcDateTime = n.getDateValue(); }, "userAgent": n => { cloudLogonSessionEvidence.userAgent = n.getStringValue(); } });
2182
+ }
2149
2183
  /**
2150
2184
  * The deserialization information for the current model
2151
2185
  * @returns {Record<string, (node: ParseNode) => void>}
@@ -2881,7 +2915,7 @@ export function deserializeIntoIdentityContainer(identityContainer = {}) {
2881
2915
  * @returns {Record<string, (node: ParseNode) => void>}
2882
2916
  */
2883
2917
  export function deserializeIntoIncident(incident = {}) {
2884
- return Object.assign(Object.assign({}, deserializeIntoEntity(incident)), { "alerts": n => { incident.alerts = n.getCollectionOfObjectValues(createAlertFromDiscriminatorValue); }, "assignedTo": n => { incident.assignedTo = n.getStringValue(); }, "classification": n => { incident.classification = n.getEnumValue(AlertClassificationObject); }, "comments": n => { incident.comments = n.getCollectionOfObjectValues(createAlertCommentFromDiscriminatorValue); }, "createdDateTime": n => { incident.createdDateTime = n.getDateValue(); }, "customTags": n => { incident.customTags = n.getCollectionOfPrimitiveValues(); }, "description": n => { incident.description = n.getStringValue(); }, "determination": n => { incident.determination = n.getEnumValue(AlertDeterminationObject); }, "displayName": n => { incident.displayName = n.getStringValue(); }, "incidentWebUrl": n => { incident.incidentWebUrl = n.getStringValue(); }, "lastModifiedBy": n => { incident.lastModifiedBy = n.getStringValue(); }, "lastUpdateDateTime": n => { incident.lastUpdateDateTime = n.getDateValue(); }, "redirectIncidentId": n => { incident.redirectIncidentId = n.getStringValue(); }, "resolvingComment": n => { incident.resolvingComment = n.getStringValue(); }, "severity": n => { incident.severity = n.getEnumValue(AlertSeverityObject); }, "status": n => { incident.status = n.getEnumValue(IncidentStatusObject); }, "systemTags": n => { incident.systemTags = n.getCollectionOfPrimitiveValues(); }, "tenantId": n => { incident.tenantId = n.getStringValue(); } });
2918
+ return Object.assign(Object.assign({}, deserializeIntoEntity(incident)), { "alerts": n => { incident.alerts = n.getCollectionOfObjectValues(createAlertFromDiscriminatorValue); }, "assignedTo": n => { incident.assignedTo = n.getStringValue(); }, "classification": n => { incident.classification = n.getEnumValue(AlertClassificationObject); }, "comments": n => { incident.comments = n.getCollectionOfObjectValues(createAlertCommentFromDiscriminatorValue); }, "createdDateTime": n => { incident.createdDateTime = n.getDateValue(); }, "customTags": n => { incident.customTags = n.getCollectionOfPrimitiveValues(); }, "description": n => { incident.description = n.getStringValue(); }, "determination": n => { incident.determination = n.getEnumValue(AlertDeterminationObject); }, "displayName": n => { incident.displayName = n.getStringValue(); }, "incidentWebUrl": n => { incident.incidentWebUrl = n.getStringValue(); }, "lastModifiedBy": n => { incident.lastModifiedBy = n.getStringValue(); }, "lastUpdateDateTime": n => { incident.lastUpdateDateTime = n.getDateValue(); }, "redirectIncidentId": n => { incident.redirectIncidentId = n.getStringValue(); }, "resolvingComment": n => { incident.resolvingComment = n.getStringValue(); }, "severity": n => { incident.severity = n.getEnumValue(AlertSeverityObject); }, "status": n => { incident.status = n.getEnumValue(IncidentStatusObject); }, "summary": n => { incident.summary = n.getStringValue(); }, "systemTags": n => { incident.systemTags = n.getCollectionOfPrimitiveValues(); }, "tenantId": n => { incident.tenantId = n.getStringValue(); } });
2885
2919
  }
2886
2920
  /**
2887
2921
  * The deserialization information for the current model
@@ -3881,6 +3915,30 @@ export function serializeCloudApplicationEvidence(writer, cloudApplicationEviden
3881
3915
  writer.writeNumberValue("saasAppId", cloudApplicationEvidence.saasAppId);
3882
3916
  writer.writeObjectValue("stream", cloudApplicationEvidence.stream, serializeStream);
3883
3917
  }
3918
+ /**
3919
+ * Serializes information the current object
3920
+ * @param writer Serialization writer to use to serialize this model
3921
+ */
3922
+ export function serializeCloudLogonRequestEvidence(writer, cloudLogonRequestEvidence = {}) {
3923
+ serializeAlertEvidence(writer, cloudLogonRequestEvidence);
3924
+ writer.writeStringValue("requestId", cloudLogonRequestEvidence.requestId);
3925
+ }
3926
+ /**
3927
+ * Serializes information the current object
3928
+ * @param writer Serialization writer to use to serialize this model
3929
+ */
3930
+ export function serializeCloudLogonSessionEvidence(writer, cloudLogonSessionEvidence = {}) {
3931
+ serializeAlertEvidence(writer, cloudLogonSessionEvidence);
3932
+ writer.writeObjectValue("account", cloudLogonSessionEvidence.account, serializeUserEvidence);
3933
+ writer.writeStringValue("browser", cloudLogonSessionEvidence.browser);
3934
+ writer.writeStringValue("deviceName", cloudLogonSessionEvidence.deviceName);
3935
+ writer.writeStringValue("operatingSystem", cloudLogonSessionEvidence.operatingSystem);
3936
+ writer.writeDateValue("previousLogonDateTime", cloudLogonSessionEvidence.previousLogonDateTime);
3937
+ writer.writeStringValue("protocol", cloudLogonSessionEvidence.protocol);
3938
+ writer.writeStringValue("sessionId", cloudLogonSessionEvidence.sessionId);
3939
+ writer.writeDateValue("startUtcDateTime", cloudLogonSessionEvidence.startUtcDateTime);
3940
+ writer.writeStringValue("userAgent", cloudLogonSessionEvidence.userAgent);
3941
+ }
3884
3942
  /**
3885
3943
  * Serializes information the current object
3886
3944
  * @param writer Serialization writer to use to serialize this model
@@ -4832,6 +4890,7 @@ export function serializeIncident(writer, incident = {}) {
4832
4890
  writer.writeStringValue("resolvingComment", incident.resolvingComment);
4833
4891
  writer.writeEnumValue("severity", incident.severity);
4834
4892
  writer.writeEnumValue("status", incident.status);
4893
+ writer.writeStringValue("summary", incident.summary);
4835
4894
  writer.writeCollectionOfPrimitiveValues("systemTags", incident.systemTags);
4836
4895
  writer.writeStringValue("tenantId", incident.tenantId);
4837
4896
  }