Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,30 @@ public MailboxItemItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap<S
public MailboxItemItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
super(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/childFolders/{mailboxFolder%2Did1}/items/{mailboxItem%2Did}{?%24expand,%24select}", rawUrl);
}
/**
* Delete navigation property items for admin
* @throws ODataError When receiving a 4XX or 5XX status code
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@Deprecated
public void delete() {
delete(null);
}
/**
* Delete navigation property items for admin
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @throws ODataError When receiving a 4XX or 5XX status code
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@Deprecated
public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer<DeleteRequestConfiguration> requestConfiguration) {
final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
}
/**
* The collection of items in this folder.
* @return a {@link MailboxItem}
Expand Down Expand Up @@ -64,6 +88,32 @@ public MailboxItem get(@jakarta.annotation.Nullable final java.util.function.Con
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
return this.requestAdapter.send(requestInfo, errorMapping, MailboxItem::createFromDiscriminatorValue);
}
/**
* Delete navigation property items for admin
* @return a {@link RequestInformation}
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@jakarta.annotation.Nonnull
@Deprecated
public RequestInformation toDeleteRequestInformation() {
return toDeleteRequestInformation(null);
}
/**
* Delete navigation property items for admin
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@jakarta.annotation.Nonnull
@Deprecated
public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer<DeleteRequestConfiguration> requestConfiguration) {
final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters);
requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new);
requestInfo.headers.tryAdd("Accept", "application/json");
return requestInfo;
}
/**
* The collection of items in this folder.
* @return a {@link RequestInformation}
Expand Down Expand Up @@ -103,6 +153,12 @@ public MailboxItemItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final S
Objects.requireNonNull(rawUrl);
return new MailboxItemItemRequestBuilder(rawUrl, requestAdapter);
}
/**
* Configuration for the request such as headers, query parameters, and middleware options.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class DeleteRequestConfiguration extends BaseRequestConfiguration {
}
/**
* The collection of items in this folder.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,32 @@ public MailboxItemItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap<S
public MailboxItemItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
super(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/items/{mailboxItem%2Did}{?%24expand,%24select}", rawUrl);
}
/**
* Delete a mailboxItem from a mailboxFolder in a mailbox. Use the disposalType query parameter to specify whether to soft-delete or hard-delete the item.
* @throws ODataError When receiving a 4XX or 5XX status code
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
* @see <a href="https://learn.microsoft.com/graph/api/mailboxfolder-delete-items?view=graph-rest-beta">Find more info here</a>
*/
@Deprecated
public void delete() {
delete(null);
}
/**
* Delete a mailboxItem from a mailboxFolder in a mailbox. Use the disposalType query parameter to specify whether to soft-delete or hard-delete the item.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @throws ODataError When receiving a 4XX or 5XX status code
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
* @see <a href="https://learn.microsoft.com/graph/api/mailboxfolder-delete-items?view=graph-rest-beta">Find more info here</a>
*/
@Deprecated
public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer<DeleteRequestConfiguration> requestConfiguration) {
final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
}
/**
* Read the properties and relationships of a mailboxItem object.
* @return a {@link MailboxItem}
Expand Down Expand Up @@ -66,6 +92,32 @@ public MailboxItem get(@jakarta.annotation.Nullable final java.util.function.Con
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
return this.requestAdapter.send(requestInfo, errorMapping, MailboxItem::createFromDiscriminatorValue);
}
/**
* Delete a mailboxItem from a mailboxFolder in a mailbox. Use the disposalType query parameter to specify whether to soft-delete or hard-delete the item.
* @return a {@link RequestInformation}
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@jakarta.annotation.Nonnull
@Deprecated
public RequestInformation toDeleteRequestInformation() {
return toDeleteRequestInformation(null);
}
/**
* Delete a mailboxItem from a mailboxFolder in a mailbox. Use the disposalType query parameter to specify whether to soft-delete or hard-delete the item.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
* @deprecated
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
*/
@jakarta.annotation.Nonnull
@Deprecated
public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer<DeleteRequestConfiguration> requestConfiguration) {
final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters);
requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new);
requestInfo.headers.tryAdd("Accept", "application/json");
return requestInfo;
}
/**
* Read the properties and relationships of a mailboxItem object.
* @return a {@link RequestInformation}
Expand Down Expand Up @@ -105,6 +157,12 @@ public MailboxItemItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final S
Objects.requireNonNull(rawUrl);
return new MailboxItemItemRequestBuilder(rawUrl, requestAdapter);
}
/**
* Configuration for the request such as headers, query parameters, and middleware options.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class DeleteRequestConfiguration extends BaseRequestConfiguration {
}
/**
* Read the properties and relationships of a mailboxItem object.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.microsoft.graph.beta.app.calls.item.participants.item.admitfromlobby.AdmitFromLobbyRequestBuilder;
import com.microsoft.graph.beta.app.calls.item.participants.item.mute.MuteRequestBuilder;
import com.microsoft.graph.beta.app.calls.item.participants.item.removefromlobby.RemoveFromLobbyRequestBuilder;
import com.microsoft.graph.beta.app.calls.item.participants.item.reportsyntheticmedia.ReportSyntheticMediaRequestBuilder;
import com.microsoft.graph.beta.app.calls.item.participants.item.startholdmusic.StartHoldMusicRequestBuilder;
import com.microsoft.graph.beta.app.calls.item.participants.item.stopholdmusic.StopHoldMusicRequestBuilder;
import com.microsoft.graph.beta.models.odataerrors.ODataError;
Expand Down Expand Up @@ -49,6 +50,14 @@ public MuteRequestBuilder mute() {
public RemoveFromLobbyRequestBuilder removeFromLobby() {
return new RemoveFromLobbyRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to call the reportSyntheticMedia method.
* @return a {@link ReportSyntheticMediaRequestBuilder}
*/
@jakarta.annotation.Nonnull
public ReportSyntheticMediaRequestBuilder reportSyntheticMedia() {
return new ReportSyntheticMediaRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to call the startHoldMusic method.
* @return a {@link StartHoldMusicRequestBuilder}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
package com.microsoft.graph.beta.app.calls.item.participants.item.reportsyntheticmedia;

import com.microsoft.graph.beta.models.DetectionSeverity;
import com.microsoft.graph.beta.models.MediaMetadata;
import com.microsoft.graph.beta.models.SyntheticMediaDetectionDetail;
import com.microsoft.kiota.serialization.AdditionalDataHolder;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import com.microsoft.kiota.store.BackedModel;
import com.microsoft.kiota.store.BackingStore;
import com.microsoft.kiota.store.BackingStoreFactorySingleton;
import java.time.OffsetDateTime;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.UUID;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class ReportSyntheticMediaPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable {
/**
* Stores model information.
*/
@jakarta.annotation.Nonnull
protected BackingStore backingStore;
/**
* Instantiates a new {@link ReportSyntheticMediaPostRequestBody} and sets the default values.
*/
public ReportSyntheticMediaPostRequestBody() {
this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore();
this.setAdditionalData(new HashMap<>());
this.setIsMalicious(false);
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @return a {@link ReportSyntheticMediaPostRequestBody}
*/
@jakarta.annotation.Nonnull
public static ReportSyntheticMediaPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new ReportSyntheticMediaPostRequestBody();
}
/**
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
* @return a {@link Map<String, Object>}
*/
@jakarta.annotation.Nonnull
public Map<String, Object> getAdditionalData() {
Map<String, Object> value = this.backingStore.get("additionalData");
if(value == null) {
value = new HashMap<>();
this.setAdditionalData(value);
}
return value;
}
/**
* Gets the backingStore property value. Stores model information.
* @return a {@link BackingStore}
*/
@jakarta.annotation.Nonnull
public BackingStore getBackingStore() {
return this.backingStore;
}
/**
* Gets the contentMetadata property value. The contentMetadata property
* @return a {@link MediaMetadata}
*/
@jakarta.annotation.Nullable
public MediaMetadata getContentMetadata() {
return this.backingStore.get("contentMetadata");
}
/**
* Gets the detectionDateTime property value. The detectionDateTime property
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getDetectionDateTime() {
return this.backingStore.get("detectionDateTime");
}
/**
* Gets the detections property value. The detections property
* @return a {@link java.util.List<SyntheticMediaDetectionDetail>}
*/
@jakarta.annotation.Nullable
public java.util.List<SyntheticMediaDetectionDetail> getDetections() {
return this.backingStore.get("detections");
}
/**
* The deserialization information for the current model
* @return a {@link Map<String, java.util.function.Consumer<ParseNode>>}
*/
@jakarta.annotation.Nonnull
public Map<String, java.util.function.Consumer<ParseNode>> getFieldDeserializers() {
final HashMap<String, java.util.function.Consumer<ParseNode>> deserializerMap = new HashMap<String, java.util.function.Consumer<ParseNode>>(7);
deserializerMap.put("contentMetadata", (n) -> { this.setContentMetadata(n.getObjectValue(MediaMetadata::createFromDiscriminatorValue)); });
deserializerMap.put("detectionDateTime", (n) -> { this.setDetectionDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("detections", (n) -> { this.setDetections(n.getCollectionOfObjectValues(SyntheticMediaDetectionDetail::createFromDiscriminatorValue)); });
deserializerMap.put("id", (n) -> { this.setId(n.getUUIDValue()); });
deserializerMap.put("isMalicious", (n) -> { this.setIsMalicious(n.getBooleanValue()); });
deserializerMap.put("overallConfidence", (n) -> { this.setOverallConfidence(n.getDoubleValue()); });
deserializerMap.put("severity", (n) -> { this.setSeverity(n.getEnumValue(DetectionSeverity::forValue)); });
return deserializerMap;
}
/**
* Gets the id property value. The id property
* @return a {@link UUID}
*/
@jakarta.annotation.Nullable
public UUID getId() {
return this.backingStore.get("id");
}
/**
* Gets the isMalicious property value. The isMalicious property
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getIsMalicious() {
return this.backingStore.get("isMalicious");
}
/**
* Gets the overallConfidence property value. The overallConfidence property
* @return a {@link Double}
*/
@jakarta.annotation.Nullable
public Double getOverallConfidence() {
return this.backingStore.get("overallConfidence");
}
/**
* Gets the severity property value. The severity property
* @return a {@link DetectionSeverity}
*/
@jakarta.annotation.Nullable
public DetectionSeverity getSeverity() {
return this.backingStore.get("severity");
}
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
Objects.requireNonNull(writer);
writer.writeObjectValue("contentMetadata", this.getContentMetadata());
writer.writeOffsetDateTimeValue("detectionDateTime", this.getDetectionDateTime());
writer.writeCollectionOfObjectValues("detections", this.getDetections());
writer.writeUUIDValue("id", this.getId());
writer.writeBooleanValue("isMalicious", this.getIsMalicious());
writer.writeDoubleValue("overallConfidence", this.getOverallConfidence());
writer.writeEnumValue("severity", this.getSeverity());
writer.writeAdditionalData(this.getAdditionalData());
}
/**
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
* @param value Value to set for the AdditionalData property.
*/
public void setAdditionalData(@jakarta.annotation.Nullable final Map<String, Object> value) {
this.backingStore.set("additionalData", value);
}
/**
* Sets the backingStore property value. Stores model information.
* @param value Value to set for the backingStore property.
*/
public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) {
Objects.requireNonNull(value);
this.backingStore = value;
}
/**
* Sets the contentMetadata property value. The contentMetadata property
* @param value Value to set for the contentMetadata property.
*/
public void setContentMetadata(@jakarta.annotation.Nullable final MediaMetadata value) {
this.backingStore.set("contentMetadata", value);
}
/**
* Sets the detectionDateTime property value. The detectionDateTime property
* @param value Value to set for the detectionDateTime property.
*/
public void setDetectionDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("detectionDateTime", value);
}
/**
* Sets the detections property value. The detections property
* @param value Value to set for the detections property.
*/
public void setDetections(@jakarta.annotation.Nullable final java.util.List<SyntheticMediaDetectionDetail> value) {
this.backingStore.set("detections", value);
}
/**
* Sets the id property value. The id property
* @param value Value to set for the id property.
*/
public void setId(@jakarta.annotation.Nullable final UUID value) {
this.backingStore.set("id", value);
}
/**
* Sets the isMalicious property value. The isMalicious property
* @param value Value to set for the isMalicious property.
*/
public void setIsMalicious(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("isMalicious", value);
}
/**
* Sets the overallConfidence property value. The overallConfidence property
* @param value Value to set for the overallConfidence property.
*/
public void setOverallConfidence(@jakarta.annotation.Nullable final Double value) {
this.backingStore.set("overallConfidence", value);
}
/**
* Sets the severity property value. The severity property
* @param value Value to set for the severity property.
*/
public void setSeverity(@jakarta.annotation.Nullable final DetectionSeverity value) {
this.backingStore.set("severity", value);
}
}
Loading
Loading