Skip to content

Commit b0243dc

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 182263
1 parent 460bf55 commit b0243dc

File tree

232 files changed

+14810
-494
lines changed

Some content is hidden

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

232 files changed

+14810
-494
lines changed

src/main/java/com/microsoft/graph/beta/generated/admin/windows/updates/updatableassets/item/UpdatableAssetItemRequestBuilder.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,21 +93,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume
9393
this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
9494
}
9595
/**
96-
* Read the properties of an azureADDevice object.
96+
* Read the properties and relationships of an updatableAssetGroup object.
9797
* @return a {@link UpdatableAsset}
9898
* @throws ODataError When receiving a 4XX or 5XX status code
99-
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-azureaddevice-get?view=graph-rest-beta">Find more info here</a>
99+
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-updatableassetgroup-get?view=graph-rest-beta">Find more info here</a>
100100
*/
101101
@jakarta.annotation.Nullable
102102
public UpdatableAsset get() {
103103
return get(null);
104104
}
105105
/**
106-
* Read the properties of an azureADDevice object.
106+
* Read the properties and relationships of an updatableAssetGroup object.
107107
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
108108
* @return a {@link UpdatableAsset}
109109
* @throws ODataError When receiving a 4XX or 5XX status code
110-
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-azureaddevice-get?view=graph-rest-beta">Find more info here</a>
110+
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-updatableassetgroup-get?view=graph-rest-beta">Find more info here</a>
111111
*/
112112
@jakarta.annotation.Nullable
113113
public UpdatableAsset get(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
@@ -162,15 +162,15 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl
162162
return requestInfo;
163163
}
164164
/**
165-
* Read the properties of an azureADDevice object.
165+
* Read the properties and relationships of an updatableAssetGroup object.
166166
* @return a {@link RequestInformation}
167167
*/
168168
@jakarta.annotation.Nonnull
169169
public RequestInformation toGetRequestInformation() {
170170
return toGetRequestInformation(null);
171171
}
172172
/**
173-
* Read the properties of an azureADDevice object.
173+
* Read the properties and relationships of an updatableAssetGroup object.
174174
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
175175
* @return a {@link RequestInformation}
176176
*/
@@ -222,7 +222,7 @@ public UpdatableAssetItemRequestBuilder withUrl(@jakarta.annotation.Nonnull fina
222222
public class DeleteRequestConfiguration extends BaseRequestConfiguration {
223223
}
224224
/**
225-
* Read the properties of an azureADDevice object.
225+
* Read the properties and relationships of an updatableAssetGroup object.
226226
*/
227227
@jakarta.annotation.Generated("com.microsoft.kiota")
228228
public class GetQueryParameters implements QueryParameters {

src/main/java/com/microsoft/graph/beta/generated/admin/windows/updates/updatepolicies/item/compliancechanges/item/ComplianceChangeItemRequestBuilder.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,18 @@ public ComplianceChangeItemRequestBuilder(@jakarta.annotation.Nonnull final Stri
4646
super(requestAdapter, "{+baseurl}/admin/windows/updates/updatePolicies/{updatePolicy%2Did}/complianceChanges/{complianceChange%2Did}{?%24expand,%24select}", rawUrl);
4747
}
4848
/**
49-
* Delete a complianceChange object.
49+
* Delete a contentApproval object.
5050
* @throws ODataError When receiving a 4XX or 5XX status code
51-
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-delete?view=graph-rest-beta">Find more info here</a>
51+
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-delete?view=graph-rest-beta">Find more info here</a>
5252
*/
5353
public void delete() {
5454
delete(null);
5555
}
5656
/**
57-
* Delete a complianceChange object.
57+
* Delete a contentApproval object.
5858
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5959
* @throws ODataError When receiving a 4XX or 5XX status code
60-
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-delete?view=graph-rest-beta">Find more info here</a>
60+
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-delete?view=graph-rest-beta">Find more info here</a>
6161
*/
6262
public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer<DeleteRequestConfiguration> requestConfiguration) {
6363
final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
@@ -66,21 +66,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume
6666
this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
6767
}
6868
/**
69-
* Read the properties and relationships of a complianceChange object.
69+
* Read the properties and relationships of a contentApproval object.
7070
* @return a {@link ComplianceChange}
7171
* @throws ODataError When receiving a 4XX or 5XX status code
72-
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-get?view=graph-rest-beta">Find more info here</a>
72+
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-get?view=graph-rest-beta">Find more info here</a>
7373
*/
7474
@jakarta.annotation.Nullable
7575
public ComplianceChange get() {
7676
return get(null);
7777
}
7878
/**
79-
* Read the properties and relationships of a complianceChange object.
79+
* Read the properties and relationships of a contentApproval object.
8080
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
8181
* @return a {@link ComplianceChange}
8282
* @throws ODataError When receiving a 4XX or 5XX status code
83-
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-get?view=graph-rest-beta">Find more info here</a>
83+
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-get?view=graph-rest-beta">Find more info here</a>
8484
*/
8585
@jakarta.annotation.Nullable
8686
public ComplianceChange get(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
@@ -117,15 +117,15 @@ public ComplianceChange patch(@jakarta.annotation.Nonnull final ComplianceChange
117117
return this.requestAdapter.send(requestInfo, errorMapping, ComplianceChange::createFromDiscriminatorValue);
118118
}
119119
/**
120-
* Delete a complianceChange object.
120+
* Delete a contentApproval object.
121121
* @return a {@link RequestInformation}
122122
*/
123123
@jakarta.annotation.Nonnull
124124
public RequestInformation toDeleteRequestInformation() {
125125
return toDeleteRequestInformation(null);
126126
}
127127
/**
128-
* Delete a complianceChange object.
128+
* Delete a contentApproval object.
129129
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
130130
* @return a {@link RequestInformation}
131131
*/
@@ -137,15 +137,15 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl
137137
return requestInfo;
138138
}
139139
/**
140-
* Read the properties and relationships of a complianceChange object.
140+
* Read the properties and relationships of a contentApproval object.
141141
* @return a {@link RequestInformation}
142142
*/
143143
@jakarta.annotation.Nonnull
144144
public RequestInformation toGetRequestInformation() {
145145
return toGetRequestInformation(null);
146146
}
147147
/**
148-
* Read the properties and relationships of a complianceChange object.
148+
* Read the properties and relationships of a contentApproval object.
149149
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
150150
* @return a {@link RequestInformation}
151151
*/
@@ -197,7 +197,7 @@ public ComplianceChangeItemRequestBuilder withUrl(@jakarta.annotation.Nonnull fi
197197
public class DeleteRequestConfiguration extends BaseRequestConfiguration {
198198
}
199199
/**
200-
* Read the properties and relationships of a complianceChange object.
200+
* Read the properties and relationships of a contentApproval object.
201201
*/
202202
@jakarta.annotation.Generated("com.microsoft.kiota")
203203
public class GetQueryParameters implements QueryParameters {

src/main/java/com/microsoft/graph/beta/generated/chats/item/messages/MessagesRequestBuilder.java

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
import com.microsoft.graph.beta.chats.item.messages.count.CountRequestBuilder;
44
import com.microsoft.graph.beta.chats.item.messages.delta.DeltaRequestBuilder;
5+
import com.microsoft.graph.beta.chats.item.messages.forwardtochat.ForwardToChatRequestBuilder;
56
import com.microsoft.graph.beta.chats.item.messages.item.ChatMessageItemRequestBuilder;
7+
import com.microsoft.graph.beta.chats.item.messages.replywithquote.ReplyWithQuoteRequestBuilder;
68
import com.microsoft.graph.beta.models.ChatMessage;
79
import com.microsoft.graph.beta.models.ChatMessageCollectionResponse;
810
import com.microsoft.graph.beta.models.odataerrors.ODataError;
@@ -40,6 +42,22 @@ public CountRequestBuilder count() {
4042
public DeltaRequestBuilder delta() {
4143
return new DeltaRequestBuilder(pathParameters, requestAdapter);
4244
}
45+
/**
46+
* Provides operations to call the forwardToChat method.
47+
* @return a {@link ForwardToChatRequestBuilder}
48+
*/
49+
@jakarta.annotation.Nonnull
50+
public ForwardToChatRequestBuilder forwardToChat() {
51+
return new ForwardToChatRequestBuilder(pathParameters, requestAdapter);
52+
}
53+
/**
54+
* Provides operations to call the replyWithQuote method.
55+
* @return a {@link ReplyWithQuoteRequestBuilder}
56+
*/
57+
@jakarta.annotation.Nonnull
58+
public ReplyWithQuoteRequestBuilder replyWithQuote() {
59+
return new ReplyWithQuoteRequestBuilder(pathParameters, requestAdapter);
60+
}
4361
/**
4462
* Provides operations to manage the messages property of the microsoft.graph.chat entity.
4563
* @param chatMessageId The unique identifier of chatMessage
@@ -93,23 +111,23 @@ public ChatMessageCollectionResponse get(@jakarta.annotation.Nullable final java
93111
return this.requestAdapter.send(requestInfo, errorMapping, ChatMessageCollectionResponse::createFromDiscriminatorValue);
94112
}
95113
/**
96-
* Send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message.
114+
* Send a new chatMessage in the specified channel or a chat.
97115
* @param body The request body
98116
* @return a {@link ChatMessage}
99117
* @throws ODataError When receiving a 4XX or 5XX status code
100-
* @see <a href="https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-beta">Find more info here</a>
118+
* @see <a href="https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-beta">Find more info here</a>
101119
*/
102120
@jakarta.annotation.Nullable
103121
public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body) {
104122
return post(body, null);
105123
}
106124
/**
107-
* Send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message.
125+
* Send a new chatMessage in the specified channel or a chat.
108126
* @param body The request body
109127
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
110128
* @return a {@link ChatMessage}
111129
* @throws ODataError When receiving a 4XX or 5XX status code
112-
* @see <a href="https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-beta">Find more info here</a>
130+
* @see <a href="https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-beta">Find more info here</a>
113131
*/
114132
@jakarta.annotation.Nullable
115133
public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body, @jakarta.annotation.Nullable final java.util.function.Consumer<PostRequestConfiguration> requestConfiguration) {
@@ -140,7 +158,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f
140158
return requestInfo;
141159
}
142160
/**
143-
* Send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message.
161+
* Send a new chatMessage in the specified channel or a chat.
144162
* @param body The request body
145163
* @return a {@link RequestInformation}
146164
*/
@@ -149,7 +167,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f
149167
return toPostRequestInformation(body, null);
150168
}
151169
/**
152-
* Send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message.
170+
* Send a new chatMessage in the specified channel or a chat.
153171
* @param body The request body
154172
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
155173
* @return a {@link RequestInformation}
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
package com.microsoft.graph.beta.chats.item.messages.forwardtochat;
2+
3+
import com.microsoft.graph.beta.models.ChatMessage;
4+
import com.microsoft.kiota.serialization.AdditionalDataHolder;
5+
import com.microsoft.kiota.serialization.Parsable;
6+
import com.microsoft.kiota.serialization.ParseNode;
7+
import com.microsoft.kiota.serialization.SerializationWriter;
8+
import com.microsoft.kiota.store.BackedModel;
9+
import com.microsoft.kiota.store.BackingStore;
10+
import com.microsoft.kiota.store.BackingStoreFactorySingleton;
11+
import java.util.HashMap;
12+
import java.util.Map;
13+
import java.util.Objects;
14+
@jakarta.annotation.Generated("com.microsoft.kiota")
15+
public class ForwardToChatPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable {
16+
/**
17+
* Stores model information.
18+
*/
19+
@jakarta.annotation.Nonnull
20+
protected BackingStore backingStore;
21+
/**
22+
* Instantiates a new {@link ForwardToChatPostRequestBody} and sets the default values.
23+
*/
24+
public ForwardToChatPostRequestBody() {
25+
this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore();
26+
this.setAdditionalData(new HashMap<>());
27+
}
28+
/**
29+
* Creates a new instance of the appropriate class based on discriminator value
30+
* @param parseNode The parse node to use to read the discriminator value and create the object
31+
* @return a {@link ForwardToChatPostRequestBody}
32+
*/
33+
@jakarta.annotation.Nonnull
34+
public static ForwardToChatPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
35+
Objects.requireNonNull(parseNode);
36+
return new ForwardToChatPostRequestBody();
37+
}
38+
/**
39+
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
40+
* @return a {@link Map<String, Object>}
41+
*/
42+
@jakarta.annotation.Nonnull
43+
public Map<String, Object> getAdditionalData() {
44+
Map<String, Object> value = this.backingStore.get("additionalData");
45+
if(value == null) {
46+
value = new HashMap<>();
47+
this.setAdditionalData(value);
48+
}
49+
return value;
50+
}
51+
/**
52+
* Gets the additionalMessage property value. The additionalMessage property
53+
* @return a {@link ChatMessage}
54+
*/
55+
@jakarta.annotation.Nullable
56+
public ChatMessage getAdditionalMessage() {
57+
return this.backingStore.get("additionalMessage");
58+
}
59+
/**
60+
* Gets the backingStore property value. Stores model information.
61+
* @return a {@link BackingStore}
62+
*/
63+
@jakarta.annotation.Nonnull
64+
public BackingStore getBackingStore() {
65+
return this.backingStore;
66+
}
67+
/**
68+
* The deserialization information for the current model
69+
* @return a {@link Map<String, java.util.function.Consumer<ParseNode>>}
70+
*/
71+
@jakarta.annotation.Nonnull
72+
public Map<String, java.util.function.Consumer<ParseNode>> getFieldDeserializers() {
73+
final HashMap<String, java.util.function.Consumer<ParseNode>> deserializerMap = new HashMap<String, java.util.function.Consumer<ParseNode>>(3);
74+
deserializerMap.put("additionalMessage", (n) -> { this.setAdditionalMessage(n.getObjectValue(ChatMessage::createFromDiscriminatorValue)); });
75+
deserializerMap.put("messageIds", (n) -> { this.setMessageIds(n.getCollectionOfPrimitiveValues(String.class)); });
76+
deserializerMap.put("targetChatIds", (n) -> { this.setTargetChatIds(n.getCollectionOfPrimitiveValues(String.class)); });
77+
return deserializerMap;
78+
}
79+
/**
80+
* Gets the messageIds property value. The messageIds property
81+
* @return a {@link java.util.List<String>}
82+
*/
83+
@jakarta.annotation.Nullable
84+
public java.util.List<String> getMessageIds() {
85+
return this.backingStore.get("messageIds");
86+
}
87+
/**
88+
* Gets the targetChatIds property value. The targetChatIds property
89+
* @return a {@link java.util.List<String>}
90+
*/
91+
@jakarta.annotation.Nullable
92+
public java.util.List<String> getTargetChatIds() {
93+
return this.backingStore.get("targetChatIds");
94+
}
95+
/**
96+
* Serializes information the current object
97+
* @param writer Serialization writer to use to serialize this model
98+
*/
99+
public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
100+
Objects.requireNonNull(writer);
101+
writer.writeObjectValue("additionalMessage", this.getAdditionalMessage());
102+
writer.writeCollectionOfPrimitiveValues("messageIds", this.getMessageIds());
103+
writer.writeCollectionOfPrimitiveValues("targetChatIds", this.getTargetChatIds());
104+
writer.writeAdditionalData(this.getAdditionalData());
105+
}
106+
/**
107+
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
108+
* @param value Value to set for the AdditionalData property.
109+
*/
110+
public void setAdditionalData(@jakarta.annotation.Nullable final Map<String, Object> value) {
111+
this.backingStore.set("additionalData", value);
112+
}
113+
/**
114+
* Sets the additionalMessage property value. The additionalMessage property
115+
* @param value Value to set for the additionalMessage property.
116+
*/
117+
public void setAdditionalMessage(@jakarta.annotation.Nullable final ChatMessage value) {
118+
this.backingStore.set("additionalMessage", value);
119+
}
120+
/**
121+
* Sets the backingStore property value. Stores model information.
122+
* @param value Value to set for the backingStore property.
123+
*/
124+
public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) {
125+
Objects.requireNonNull(value);
126+
this.backingStore = value;
127+
}
128+
/**
129+
* Sets the messageIds property value. The messageIds property
130+
* @param value Value to set for the messageIds property.
131+
*/
132+
public void setMessageIds(@jakarta.annotation.Nullable final java.util.List<String> value) {
133+
this.backingStore.set("messageIds", value);
134+
}
135+
/**
136+
* Sets the targetChatIds property value. The targetChatIds property
137+
* @param value Value to set for the targetChatIds property.
138+
*/
139+
public void setTargetChatIds(@jakarta.annotation.Nullable final java.util.List<String> value) {
140+
this.backingStore.set("targetChatIds", value);
141+
}
142+
}

0 commit comments

Comments
 (0)