Skip to content

Commit 7b060bc

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 183645
1 parent 2cef05b commit 7b060bc

File tree

1,338 files changed

+35802
-35802
lines changed

Some content is hidden

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

1,338 files changed

+35802
-35802
lines changed

src/main/java/com/microsoft/graph/generated/admin/serviceannouncement/messages/archive/ArchivePostResponse.java

Lines changed: 0 additions & 107 deletions
This file was deleted.

src/main/java/com/microsoft/graph/generated/admin/serviceannouncement/messages/archive/ArchiveRequestBuilder.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,29 +37,29 @@ public ArchiveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j
3737
/**
3838
* Archive a list of serviceUpdateMessages for the signed in user.
3939
* @param body The request body
40-
* @return a {@link ArchivePostResponse}
40+
* @return a {@link ArchivepostResponse}
4141
* @throws ODataError When receiving a 4XX or 5XX status code
4242
* @see <a href="https://learn.microsoft.com/graph/api/serviceupdatemessage-archive?view=graph-rest-1.0">Find more info here</a>
4343
*/
4444
@jakarta.annotation.Nullable
45-
public ArchivePostResponse post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body) {
45+
public ArchivepostResponse post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body) {
4646
return post(body, null);
4747
}
4848
/**
4949
* Archive a list of serviceUpdateMessages for the signed in user.
5050
* @param body The request body
5151
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
52-
* @return a {@link ArchivePostResponse}
52+
* @return a {@link ArchivepostResponse}
5353
* @throws ODataError When receiving a 4XX or 5XX status code
5454
* @see <a href="https://learn.microsoft.com/graph/api/serviceupdatemessage-archive?view=graph-rest-1.0">Find more info here</a>
5555
*/
5656
@jakarta.annotation.Nullable
57-
public ArchivePostResponse post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer<PostRequestConfiguration> requestConfiguration) {
57+
public ArchivepostResponse post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer<PostRequestConfiguration> requestConfiguration) {
5858
Objects.requireNonNull(body);
5959
final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration);
6060
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
6161
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
62-
return this.requestAdapter.send(requestInfo, errorMapping, ArchivePostResponse::createFromDiscriminatorValue);
62+
return this.requestAdapter.send(requestInfo, errorMapping, ArchivepostResponse::createFromDiscriminatorValue);
6363
}
6464
/**
6565
* Archive a list of serviceUpdateMessages for the signed in user.
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
package com.microsoft.graph.admin.serviceannouncement.messages.archive;
2+
3+
import com.microsoft.kiota.serialization.AdditionalDataHolder;
4+
import com.microsoft.kiota.serialization.Parsable;
5+
import com.microsoft.kiota.serialization.ParseNode;
6+
import com.microsoft.kiota.serialization.SerializationWriter;
7+
import com.microsoft.kiota.store.BackedModel;
8+
import com.microsoft.kiota.store.BackingStore;
9+
import com.microsoft.kiota.store.BackingStoreFactorySingleton;
10+
import java.util.HashMap;
11+
import java.util.Map;
12+
import java.util.Objects;
13+
@jakarta.annotation.Generated("com.microsoft.kiota")
14+
public class ArchivepostResponse implements AdditionalDataHolder, BackedModel, Parsable {
15+
/**
16+
* Stores model information.
17+
*/
18+
@jakarta.annotation.Nonnull
19+
protected BackingStore backingStore;
20+
/**
21+
* Instantiates a new {@link ArchivepostResponse} and sets the default values.
22+
*/
23+
public ArchivepostResponse() {
24+
this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore();
25+
this.setAdditionalData(new HashMap<>());
26+
}
27+
/**
28+
* Creates a new instance of the appropriate class based on discriminator value
29+
* @param parseNode The parse node to use to read the discriminator value and create the object
30+
* @return a {@link ArchivepostResponse}
31+
*/
32+
@jakarta.annotation.Nonnull
33+
public static ArchivepostResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
34+
Objects.requireNonNull(parseNode);
35+
return new ArchivepostResponse();
36+
}
37+
/**
38+
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
39+
* @return a {@link Map<String, Object>}
40+
*/
41+
@jakarta.annotation.Nonnull
42+
public Map<String, Object> getAdditionalData() {
43+
Map<String, Object> value = this.backingStore.get("additionalData");
44+
if(value == null) {
45+
value = new HashMap<>();
46+
this.setAdditionalData(value);
47+
}
48+
return value;
49+
}
50+
/**
51+
* Gets the backingStore property value. Stores model information.
52+
* @return a {@link BackingStore}
53+
*/
54+
@jakarta.annotation.Nonnull
55+
public BackingStore getBackingStore() {
56+
return this.backingStore;
57+
}
58+
/**
59+
* The deserialization information for the current model
60+
* @return a {@link Map<String, java.util.function.Consumer<ParseNode>>}
61+
*/
62+
@jakarta.annotation.Nonnull
63+
public Map<String, java.util.function.Consumer<ParseNode>> getFieldDeserializers() {
64+
final HashMap<String, java.util.function.Consumer<ParseNode>> deserializerMap = new HashMap<String, java.util.function.Consumer<ParseNode>>(1);
65+
deserializerMap.put("value", (n) -> { this.setValue(n.getBooleanValue()); });
66+
return deserializerMap;
67+
}
68+
/**
69+
* Gets the value property value. The value property
70+
* @return a {@link Boolean}
71+
*/
72+
@jakarta.annotation.Nullable
73+
public Boolean getValue() {
74+
return this.backingStore.get("value");
75+
}
76+
/**
77+
* Serializes information the current object
78+
* @param writer Serialization writer to use to serialize this model
79+
*/
80+
public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
81+
Objects.requireNonNull(writer);
82+
writer.writeBooleanValue("value", this.getValue());
83+
writer.writeAdditionalData(this.getAdditionalData());
84+
}
85+
/**
86+
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
87+
* @param value Value to set for the AdditionalData property.
88+
*/
89+
public void setAdditionalData(@jakarta.annotation.Nullable final Map<String, Object> value) {
90+
this.backingStore.set("additionalData", value);
91+
}
92+
/**
93+
* Sets the backingStore property value. Stores model information.
94+
* @param value Value to set for the backingStore property.
95+
*/
96+
public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) {
97+
Objects.requireNonNull(value);
98+
this.backingStore = value;
99+
}
100+
/**
101+
* Sets the value property value. The value property
102+
* @param value Value to set for the value property.
103+
*/
104+
public void setValue(@jakarta.annotation.Nullable final Boolean value) {
105+
this.backingStore.set("value", value);
106+
}
107+
}

src/main/java/com/microsoft/graph/generated/admin/serviceannouncement/messages/favorite/FavoritePostResponse.java

Lines changed: 0 additions & 107 deletions
This file was deleted.

src/main/java/com/microsoft/graph/generated/admin/serviceannouncement/messages/favorite/FavoriteRequestBuilder.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,29 +37,29 @@ public FavoriteRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @
3737
/**
3838
* Change the status of a list of serviceUpdateMessages to favorite for the signed in user.
3939
* @param body The request body
40-
* @return a {@link FavoritePostResponse}
40+
* @return a {@link FavoritepostResponse}
4141
* @throws ODataError When receiving a 4XX or 5XX status code
4242
* @see <a href="https://learn.microsoft.com/graph/api/serviceupdatemessage-favorite?view=graph-rest-1.0">Find more info here</a>
4343
*/
4444
@jakarta.annotation.Nullable
45-
public FavoritePostResponse post(@jakarta.annotation.Nonnull final FavoritePostRequestBody body) {
45+
public FavoritepostResponse post(@jakarta.annotation.Nonnull final FavoritePostRequestBody body) {
4646
return post(body, null);
4747
}
4848
/**
4949
* Change the status of a list of serviceUpdateMessages to favorite for the signed in user.
5050
* @param body The request body
5151
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
52-
* @return a {@link FavoritePostResponse}
52+
* @return a {@link FavoritepostResponse}
5353
* @throws ODataError When receiving a 4XX or 5XX status code
5454
* @see <a href="https://learn.microsoft.com/graph/api/serviceupdatemessage-favorite?view=graph-rest-1.0">Find more info here</a>
5555
*/
5656
@jakarta.annotation.Nullable
57-
public FavoritePostResponse post(@jakarta.annotation.Nonnull final FavoritePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer<PostRequestConfiguration> requestConfiguration) {
57+
public FavoritepostResponse post(@jakarta.annotation.Nonnull final FavoritePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer<PostRequestConfiguration> requestConfiguration) {
5858
Objects.requireNonNull(body);
5959
final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration);
6060
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
6161
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
62-
return this.requestAdapter.send(requestInfo, errorMapping, FavoritePostResponse::createFromDiscriminatorValue);
62+
return this.requestAdapter.send(requestInfo, errorMapping, FavoritepostResponse::createFromDiscriminatorValue);
6363
}
6464
/**
6565
* Change the status of a list of serviceUpdateMessages to favorite for the signed in user.

0 commit comments

Comments
 (0)