Skip to content

Commit 9ed08f8

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 230485
1 parent f2ff2f1 commit 9ed08f8

448 files changed

Lines changed: 61591 additions & 663 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/main/java/com/microsoft/graph/beta/generated/admin/exchange/mailboxes/item/folders/item/childfolders/item/items/item/MailboxItemItemRequestBuilder.java

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,30 @@ public MailboxItemItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap<S
3636
public MailboxItemItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
3737
super(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/childFolders/{mailboxFolder%2Did1}/items/{mailboxItem%2Did}{?%24expand,%24select}", rawUrl);
3838
}
39+
/**
40+
* Delete navigation property items for admin
41+
* @throws ODataError When receiving a 4XX or 5XX status code
42+
* @deprecated
43+
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
44+
*/
45+
@Deprecated
46+
public void delete() {
47+
delete(null);
48+
}
49+
/**
50+
* Delete navigation property items for admin
51+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
52+
* @throws ODataError When receiving a 4XX or 5XX status code
53+
* @deprecated
54+
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
55+
*/
56+
@Deprecated
57+
public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer<DeleteRequestConfiguration> requestConfiguration) {
58+
final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
59+
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
60+
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
61+
this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
62+
}
3963
/**
4064
* The collection of items in this folder.
4165
* @return a {@link MailboxItem}
@@ -64,6 +88,32 @@ public MailboxItem get(@jakarta.annotation.Nullable final java.util.function.Con
6488
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
6589
return this.requestAdapter.send(requestInfo, errorMapping, MailboxItem::createFromDiscriminatorValue);
6690
}
91+
/**
92+
* Delete navigation property items for admin
93+
* @return a {@link RequestInformation}
94+
* @deprecated
95+
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
96+
*/
97+
@jakarta.annotation.Nonnull
98+
@Deprecated
99+
public RequestInformation toDeleteRequestInformation() {
100+
return toDeleteRequestInformation(null);
101+
}
102+
/**
103+
* Delete navigation property items for admin
104+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
105+
* @return a {@link RequestInformation}
106+
* @deprecated
107+
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
108+
*/
109+
@jakarta.annotation.Nonnull
110+
@Deprecated
111+
public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer<DeleteRequestConfiguration> requestConfiguration) {
112+
final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters);
113+
requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new);
114+
requestInfo.headers.tryAdd("Accept", "application/json");
115+
return requestInfo;
116+
}
67117
/**
68118
* The collection of items in this folder.
69119
* @return a {@link RequestInformation}
@@ -103,6 +153,12 @@ public MailboxItemItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final S
103153
Objects.requireNonNull(rawUrl);
104154
return new MailboxItemItemRequestBuilder(rawUrl, requestAdapter);
105155
}
156+
/**
157+
* Configuration for the request such as headers, query parameters, and middleware options.
158+
*/
159+
@jakarta.annotation.Generated("com.microsoft.kiota")
160+
public class DeleteRequestConfiguration extends BaseRequestConfiguration {
161+
}
106162
/**
107163
* The collection of items in this folder.
108164
*/

src/main/java/com/microsoft/graph/beta/generated/admin/exchange/mailboxes/item/folders/item/items/item/MailboxItemItemRequestBuilder.java

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,32 @@ public MailboxItemItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap<S
3636
public MailboxItemItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
3737
super(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/items/{mailboxItem%2Did}{?%24expand,%24select}", rawUrl);
3838
}
39+
/**
40+
* 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.
41+
* @throws ODataError When receiving a 4XX or 5XX status code
42+
* @deprecated
43+
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
44+
* @see <a href="https://learn.microsoft.com/graph/api/mailboxfolder-delete-items?view=graph-rest-beta">Find more info here</a>
45+
*/
46+
@Deprecated
47+
public void delete() {
48+
delete(null);
49+
}
50+
/**
51+
* 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.
52+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
53+
* @throws ODataError When receiving a 4XX or 5XX status code
54+
* @deprecated
55+
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
56+
* @see <a href="https://learn.microsoft.com/graph/api/mailboxfolder-delete-items?view=graph-rest-beta">Find more info here</a>
57+
*/
58+
@Deprecated
59+
public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer<DeleteRequestConfiguration> requestConfiguration) {
60+
final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
61+
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
62+
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
63+
this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
64+
}
3965
/**
4066
* Read the properties and relationships of a mailboxItem object.
4167
* @return a {@link MailboxItem}
@@ -66,6 +92,32 @@ public MailboxItem get(@jakarta.annotation.Nullable final java.util.function.Con
6692
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
6793
return this.requestAdapter.send(requestInfo, errorMapping, MailboxItem::createFromDiscriminatorValue);
6894
}
95+
/**
96+
* 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.
97+
* @return a {@link RequestInformation}
98+
* @deprecated
99+
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
100+
*/
101+
@jakarta.annotation.Nonnull
102+
@Deprecated
103+
public RequestInformation toDeleteRequestInformation() {
104+
return toDeleteRequestInformation(null);
105+
}
106+
/**
107+
* 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.
108+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
109+
* @return a {@link RequestInformation}
110+
* @deprecated
111+
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
112+
*/
113+
@jakarta.annotation.Nonnull
114+
@Deprecated
115+
public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer<DeleteRequestConfiguration> requestConfiguration) {
116+
final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters);
117+
requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new);
118+
requestInfo.headers.tryAdd("Accept", "application/json");
119+
return requestInfo;
120+
}
69121
/**
70122
* Read the properties and relationships of a mailboxItem object.
71123
* @return a {@link RequestInformation}
@@ -105,6 +157,12 @@ public MailboxItemItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final S
105157
Objects.requireNonNull(rawUrl);
106158
return new MailboxItemItemRequestBuilder(rawUrl, requestAdapter);
107159
}
160+
/**
161+
* Configuration for the request such as headers, query parameters, and middleware options.
162+
*/
163+
@jakarta.annotation.Generated("com.microsoft.kiota")
164+
public class DeleteRequestConfiguration extends BaseRequestConfiguration {
165+
}
108166
/**
109167
* Read the properties and relationships of a mailboxItem object.
110168
*/

src/main/java/com/microsoft/graph/beta/generated/app/calls/item/participants/item/ParticipantItemRequestBuilder.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.microsoft.graph.beta.app.calls.item.participants.item.admitfromlobby.AdmitFromLobbyRequestBuilder;
44
import com.microsoft.graph.beta.app.calls.item.participants.item.mute.MuteRequestBuilder;
55
import com.microsoft.graph.beta.app.calls.item.participants.item.removefromlobby.RemoveFromLobbyRequestBuilder;
6+
import com.microsoft.graph.beta.app.calls.item.participants.item.reportsyntheticmedia.ReportSyntheticMediaRequestBuilder;
67
import com.microsoft.graph.beta.app.calls.item.participants.item.startholdmusic.StartHoldMusicRequestBuilder;
78
import com.microsoft.graph.beta.app.calls.item.participants.item.stopholdmusic.StopHoldMusicRequestBuilder;
89
import com.microsoft.graph.beta.models.odataerrors.ODataError;
@@ -49,6 +50,14 @@ public MuteRequestBuilder mute() {
4950
public RemoveFromLobbyRequestBuilder removeFromLobby() {
5051
return new RemoveFromLobbyRequestBuilder(pathParameters, requestAdapter);
5152
}
53+
/**
54+
* Provides operations to call the reportSyntheticMedia method.
55+
* @return a {@link ReportSyntheticMediaRequestBuilder}
56+
*/
57+
@jakarta.annotation.Nonnull
58+
public ReportSyntheticMediaRequestBuilder reportSyntheticMedia() {
59+
return new ReportSyntheticMediaRequestBuilder(pathParameters, requestAdapter);
60+
}
5261
/**
5362
* Provides operations to call the startHoldMusic method.
5463
* @return a {@link StartHoldMusicRequestBuilder}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,215 @@
1+
package com.microsoft.graph.beta.app.calls.item.participants.item.reportsyntheticmedia;
2+
3+
import com.microsoft.graph.beta.models.DetectionSeverity;
4+
import com.microsoft.graph.beta.models.MediaMetadata;
5+
import com.microsoft.graph.beta.models.SyntheticMediaDetectionDetail;
6+
import com.microsoft.kiota.serialization.AdditionalDataHolder;
7+
import com.microsoft.kiota.serialization.Parsable;
8+
import com.microsoft.kiota.serialization.ParseNode;
9+
import com.microsoft.kiota.serialization.SerializationWriter;
10+
import com.microsoft.kiota.store.BackedModel;
11+
import com.microsoft.kiota.store.BackingStore;
12+
import com.microsoft.kiota.store.BackingStoreFactorySingleton;
13+
import java.time.OffsetDateTime;
14+
import java.util.HashMap;
15+
import java.util.Map;
16+
import java.util.Objects;
17+
import java.util.UUID;
18+
@jakarta.annotation.Generated("com.microsoft.kiota")
19+
public class ReportSyntheticMediaPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable {
20+
/**
21+
* Stores model information.
22+
*/
23+
@jakarta.annotation.Nonnull
24+
protected BackingStore backingStore;
25+
/**
26+
* Instantiates a new {@link ReportSyntheticMediaPostRequestBody} and sets the default values.
27+
*/
28+
public ReportSyntheticMediaPostRequestBody() {
29+
this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore();
30+
this.setAdditionalData(new HashMap<>());
31+
this.setIsMalicious(false);
32+
}
33+
/**
34+
* Creates a new instance of the appropriate class based on discriminator value
35+
* @param parseNode The parse node to use to read the discriminator value and create the object
36+
* @return a {@link ReportSyntheticMediaPostRequestBody}
37+
*/
38+
@jakarta.annotation.Nonnull
39+
public static ReportSyntheticMediaPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
40+
Objects.requireNonNull(parseNode);
41+
return new ReportSyntheticMediaPostRequestBody();
42+
}
43+
/**
44+
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
45+
* @return a {@link Map<String, Object>}
46+
*/
47+
@jakarta.annotation.Nonnull
48+
public Map<String, Object> getAdditionalData() {
49+
Map<String, Object> value = this.backingStore.get("additionalData");
50+
if(value == null) {
51+
value = new HashMap<>();
52+
this.setAdditionalData(value);
53+
}
54+
return value;
55+
}
56+
/**
57+
* Gets the backingStore property value. Stores model information.
58+
* @return a {@link BackingStore}
59+
*/
60+
@jakarta.annotation.Nonnull
61+
public BackingStore getBackingStore() {
62+
return this.backingStore;
63+
}
64+
/**
65+
* Gets the contentMetadata property value. The contentMetadata property
66+
* @return a {@link MediaMetadata}
67+
*/
68+
@jakarta.annotation.Nullable
69+
public MediaMetadata getContentMetadata() {
70+
return this.backingStore.get("contentMetadata");
71+
}
72+
/**
73+
* Gets the detectionDateTime property value. The detectionDateTime property
74+
* @return a {@link OffsetDateTime}
75+
*/
76+
@jakarta.annotation.Nullable
77+
public OffsetDateTime getDetectionDateTime() {
78+
return this.backingStore.get("detectionDateTime");
79+
}
80+
/**
81+
* Gets the detections property value. The detections property
82+
* @return a {@link java.util.List<SyntheticMediaDetectionDetail>}
83+
*/
84+
@jakarta.annotation.Nullable
85+
public java.util.List<SyntheticMediaDetectionDetail> getDetections() {
86+
return this.backingStore.get("detections");
87+
}
88+
/**
89+
* The deserialization information for the current model
90+
* @return a {@link Map<String, java.util.function.Consumer<ParseNode>>}
91+
*/
92+
@jakarta.annotation.Nonnull
93+
public Map<String, java.util.function.Consumer<ParseNode>> getFieldDeserializers() {
94+
final HashMap<String, java.util.function.Consumer<ParseNode>> deserializerMap = new HashMap<String, java.util.function.Consumer<ParseNode>>(7);
95+
deserializerMap.put("contentMetadata", (n) -> { this.setContentMetadata(n.getObjectValue(MediaMetadata::createFromDiscriminatorValue)); });
96+
deserializerMap.put("detectionDateTime", (n) -> { this.setDetectionDateTime(n.getOffsetDateTimeValue()); });
97+
deserializerMap.put("detections", (n) -> { this.setDetections(n.getCollectionOfObjectValues(SyntheticMediaDetectionDetail::createFromDiscriminatorValue)); });
98+
deserializerMap.put("id", (n) -> { this.setId(n.getUUIDValue()); });
99+
deserializerMap.put("isMalicious", (n) -> { this.setIsMalicious(n.getBooleanValue()); });
100+
deserializerMap.put("overallConfidence", (n) -> { this.setOverallConfidence(n.getDoubleValue()); });
101+
deserializerMap.put("severity", (n) -> { this.setSeverity(n.getEnumValue(DetectionSeverity::forValue)); });
102+
return deserializerMap;
103+
}
104+
/**
105+
* Gets the id property value. The id property
106+
* @return a {@link UUID}
107+
*/
108+
@jakarta.annotation.Nullable
109+
public UUID getId() {
110+
return this.backingStore.get("id");
111+
}
112+
/**
113+
* Gets the isMalicious property value. The isMalicious property
114+
* @return a {@link Boolean}
115+
*/
116+
@jakarta.annotation.Nullable
117+
public Boolean getIsMalicious() {
118+
return this.backingStore.get("isMalicious");
119+
}
120+
/**
121+
* Gets the overallConfidence property value. The overallConfidence property
122+
* @return a {@link Double}
123+
*/
124+
@jakarta.annotation.Nullable
125+
public Double getOverallConfidence() {
126+
return this.backingStore.get("overallConfidence");
127+
}
128+
/**
129+
* Gets the severity property value. The severity property
130+
* @return a {@link DetectionSeverity}
131+
*/
132+
@jakarta.annotation.Nullable
133+
public DetectionSeverity getSeverity() {
134+
return this.backingStore.get("severity");
135+
}
136+
/**
137+
* Serializes information the current object
138+
* @param writer Serialization writer to use to serialize this model
139+
*/
140+
public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
141+
Objects.requireNonNull(writer);
142+
writer.writeObjectValue("contentMetadata", this.getContentMetadata());
143+
writer.writeOffsetDateTimeValue("detectionDateTime", this.getDetectionDateTime());
144+
writer.writeCollectionOfObjectValues("detections", this.getDetections());
145+
writer.writeUUIDValue("id", this.getId());
146+
writer.writeBooleanValue("isMalicious", this.getIsMalicious());
147+
writer.writeDoubleValue("overallConfidence", this.getOverallConfidence());
148+
writer.writeEnumValue("severity", this.getSeverity());
149+
writer.writeAdditionalData(this.getAdditionalData());
150+
}
151+
/**
152+
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
153+
* @param value Value to set for the AdditionalData property.
154+
*/
155+
public void setAdditionalData(@jakarta.annotation.Nullable final Map<String, Object> value) {
156+
this.backingStore.set("additionalData", value);
157+
}
158+
/**
159+
* Sets the backingStore property value. Stores model information.
160+
* @param value Value to set for the backingStore property.
161+
*/
162+
public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) {
163+
Objects.requireNonNull(value);
164+
this.backingStore = value;
165+
}
166+
/**
167+
* Sets the contentMetadata property value. The contentMetadata property
168+
* @param value Value to set for the contentMetadata property.
169+
*/
170+
public void setContentMetadata(@jakarta.annotation.Nullable final MediaMetadata value) {
171+
this.backingStore.set("contentMetadata", value);
172+
}
173+
/**
174+
* Sets the detectionDateTime property value. The detectionDateTime property
175+
* @param value Value to set for the detectionDateTime property.
176+
*/
177+
public void setDetectionDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
178+
this.backingStore.set("detectionDateTime", value);
179+
}
180+
/**
181+
* Sets the detections property value. The detections property
182+
* @param value Value to set for the detections property.
183+
*/
184+
public void setDetections(@jakarta.annotation.Nullable final java.util.List<SyntheticMediaDetectionDetail> value) {
185+
this.backingStore.set("detections", value);
186+
}
187+
/**
188+
* Sets the id property value. The id property
189+
* @param value Value to set for the id property.
190+
*/
191+
public void setId(@jakarta.annotation.Nullable final UUID value) {
192+
this.backingStore.set("id", value);
193+
}
194+
/**
195+
* Sets the isMalicious property value. The isMalicious property
196+
* @param value Value to set for the isMalicious property.
197+
*/
198+
public void setIsMalicious(@jakarta.annotation.Nullable final Boolean value) {
199+
this.backingStore.set("isMalicious", value);
200+
}
201+
/**
202+
* Sets the overallConfidence property value. The overallConfidence property
203+
* @param value Value to set for the overallConfidence property.
204+
*/
205+
public void setOverallConfidence(@jakarta.annotation.Nullable final Double value) {
206+
this.backingStore.set("overallConfidence", value);
207+
}
208+
/**
209+
* Sets the severity property value. The severity property
210+
* @param value Value to set for the severity property.
211+
*/
212+
public void setSeverity(@jakarta.annotation.Nullable final DetectionSeverity value) {
213+
this.backingStore.set("severity", value);
214+
}
215+
}

0 commit comments

Comments
 (0)