Skip to content

Commit ccfdac7

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 199349
1 parent f2a7e8a commit ccfdac7

File tree

52 files changed

+513
-397
lines changed

Some content is hidden

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

52 files changed

+513
-397
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,23 +93,23 @@ public ChatMessageCollectionResponse get(@jakarta.annotation.Nullable final java
9393
return this.requestAdapter.send(requestInfo, errorMapping, ChatMessageCollectionResponse::createFromDiscriminatorValue);
9494
}
9595
/**
96-
* Send a new chatMessage in the specified channel or a chat.
96+
* Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.
9797
* @param body The request body
9898
* @return a {@link ChatMessage}
9999
* @throws ODataError When receiving a 4XX or 5XX status code
100-
* @see <a href="https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0">Find more info here</a>
100+
* @see <a href="https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0">Find more info here</a>
101101
*/
102102
@jakarta.annotation.Nullable
103103
public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body) {
104104
return post(body, null);
105105
}
106106
/**
107-
* Send a new chatMessage in the specified channel or a chat.
107+
* Send a new chatMessage in the specified chat. This API can&apos;t create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.
108108
* @param body The request body
109109
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
110110
* @return a {@link ChatMessage}
111111
* @throws ODataError When receiving a 4XX or 5XX status code
112-
* @see <a href="https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0">Find more info here</a>
112+
* @see <a href="https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0">Find more info here</a>
113113
*/
114114
@jakarta.annotation.Nullable
115115
public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body, @jakarta.annotation.Nullable final java.util.function.Consumer<PostRequestConfiguration> requestConfiguration) {
@@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f
140140
return requestInfo;
141141
}
142142
/**
143-
* Send a new chatMessage in the specified channel or a chat.
143+
* Send a new chatMessage in the specified chat. This API can&apos;t create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.
144144
* @param body The request body
145145
* @return a {@link RequestInformation}
146146
*/
@@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f
149149
return toPostRequestInformation(body, null);
150150
}
151151
/**
152-
* Send a new chatMessage in the specified channel or a chat.
152+
* Send a new chatMessage in the specified chat. This API can&apos;t create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.
153153
* @param body The request body
154154
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
155155
* @return a {@link RequestInformation}

src/main/java/com/microsoft/graph/generated/contacts/ContactsRequestBuilder.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ public OrgContactItemRequestBuilder byOrgContactId(@jakarta.annotation.Nonnull f
8484
* @param requestAdapter The request adapter to use to execute the requests.
8585
*/
8686
public ContactsRequestBuilder(@jakarta.annotation.Nonnull final HashMap<String, Object> pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
87-
super(requestAdapter, "{+baseurl}/contacts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24top}", pathParameters);
87+
super(requestAdapter, "{+baseurl}/contacts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters);
8888
}
8989
/**
9090
* Instantiates a new {@link ContactsRequestBuilder} and sets the default values.
9191
* @param rawUrl The raw URL to use for the request builder.
9292
* @param requestAdapter The request adapter to use to execute the requests.
9393
*/
9494
public ContactsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
95-
super(requestAdapter, "{+baseurl}/contacts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24top}", rawUrl);
95+
super(requestAdapter, "{+baseurl}/contacts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl);
9696
}
9797
/**
9898
* Get the list of organizational contacts for this organization.
@@ -183,6 +183,11 @@ public class GetQueryParameters implements QueryParameters {
183183
*/
184184
@jakarta.annotation.Nullable
185185
public String[] select;
186+
/**
187+
* Skip the first n items
188+
*/
189+
@jakarta.annotation.Nullable
190+
public Integer skip;
186191
/**
187192
* Show only the first n items
188193
*/
@@ -198,6 +203,7 @@ public Map<String, Object> toQueryParameters() {
198203
allQueryParams.put("%24count", count);
199204
allQueryParams.put("%24filter", filter);
200205
allQueryParams.put("%24search", search);
206+
allQueryParams.put("%24skip", skip);
201207
allQueryParams.put("%24top", top);
202208
allQueryParams.put("%24expand", expand);
203209
allQueryParams.put("%24orderby", orderby);

src/main/java/com/microsoft/graph/generated/contacts/item/OrgContactItemRequestBuilder.java

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,24 @@ public OrgContactItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap<St
135135
public OrgContactItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
136136
super(requestAdapter, "{+baseurl}/contacts/{orgContact%2Did}{?%24expand,%24select}", rawUrl);
137137
}
138+
/**
139+
* Delete entity from contacts
140+
* @throws ODataError When receiving a 4XX or 5XX status code
141+
*/
142+
public void delete() {
143+
delete(null);
144+
}
145+
/**
146+
* Delete entity from contacts
147+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
148+
* @throws ODataError When receiving a 4XX or 5XX status code
149+
*/
150+
public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer<DeleteRequestConfiguration> requestConfiguration) {
151+
final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
152+
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
153+
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
154+
this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
155+
}
138156
/**
139157
* Get the properties and relationships of an organizational contact.
140158
* @return a {@link OrgContact}
@@ -159,6 +177,51 @@ public OrgContact get(@jakarta.annotation.Nullable final java.util.function.Cons
159177
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
160178
return this.requestAdapter.send(requestInfo, errorMapping, OrgContact::createFromDiscriminatorValue);
161179
}
180+
/**
181+
* Update entity in contacts
182+
* @param body The request body
183+
* @return a {@link OrgContact}
184+
* @throws ODataError When receiving a 4XX or 5XX status code
185+
*/
186+
@jakarta.annotation.Nullable
187+
public OrgContact patch(@jakarta.annotation.Nonnull final OrgContact body) {
188+
return patch(body, null);
189+
}
190+
/**
191+
* Update entity in contacts
192+
* @param body The request body
193+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
194+
* @return a {@link OrgContact}
195+
* @throws ODataError When receiving a 4XX or 5XX status code
196+
*/
197+
@jakarta.annotation.Nullable
198+
public OrgContact patch(@jakarta.annotation.Nonnull final OrgContact body, @jakarta.annotation.Nullable final java.util.function.Consumer<PatchRequestConfiguration> requestConfiguration) {
199+
Objects.requireNonNull(body);
200+
final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration);
201+
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
202+
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
203+
return this.requestAdapter.send(requestInfo, errorMapping, OrgContact::createFromDiscriminatorValue);
204+
}
205+
/**
206+
* Delete entity from contacts
207+
* @return a {@link RequestInformation}
208+
*/
209+
@jakarta.annotation.Nonnull
210+
public RequestInformation toDeleteRequestInformation() {
211+
return toDeleteRequestInformation(null);
212+
}
213+
/**
214+
* Delete entity from contacts
215+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
216+
* @return a {@link RequestInformation}
217+
*/
218+
@jakarta.annotation.Nonnull
219+
public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer<DeleteRequestConfiguration> requestConfiguration) {
220+
final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters);
221+
requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new);
222+
requestInfo.headers.tryAdd("Accept", "application/json");
223+
return requestInfo;
224+
}
162225
/**
163226
* Get the properties and relationships of an organizational contact.
164227
* @return a {@link RequestInformation}
@@ -179,6 +242,30 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f
179242
requestInfo.headers.tryAdd("Accept", "application/json");
180243
return requestInfo;
181244
}
245+
/**
246+
* Update entity in contacts
247+
* @param body The request body
248+
* @return a {@link RequestInformation}
249+
*/
250+
@jakarta.annotation.Nonnull
251+
public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final OrgContact body) {
252+
return toPatchRequestInformation(body, null);
253+
}
254+
/**
255+
* Update entity in contacts
256+
* @param body The request body
257+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
258+
* @return a {@link RequestInformation}
259+
*/
260+
@jakarta.annotation.Nonnull
261+
public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final OrgContact body, @jakarta.annotation.Nullable final java.util.function.Consumer<PatchRequestConfiguration> requestConfiguration) {
262+
Objects.requireNonNull(body);
263+
final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters);
264+
requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new);
265+
requestInfo.headers.tryAdd("Accept", "application/json");
266+
requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
267+
return requestInfo;
268+
}
182269
/**
183270
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
184271
* @param rawUrl The raw URL to use for the request builder.
@@ -189,6 +276,12 @@ public OrgContactItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final St
189276
Objects.requireNonNull(rawUrl);
190277
return new OrgContactItemRequestBuilder(rawUrl, requestAdapter);
191278
}
279+
/**
280+
* Configuration for the request such as headers, query parameters, and middleware options.
281+
*/
282+
@jakarta.annotation.Generated("com.microsoft.kiota")
283+
public class DeleteRequestConfiguration extends BaseRequestConfiguration {
284+
}
192285
/**
193286
* Get the properties and relationships of an organizational contact.
194287
*/
@@ -227,4 +320,10 @@ public class GetRequestConfiguration extends BaseRequestConfiguration {
227320
@jakarta.annotation.Nullable
228321
public GetQueryParameters queryParameters = new GetQueryParameters();
229322
}
323+
/**
324+
* Configuration for the request such as headers, query parameters, and middleware options.
325+
*/
326+
@jakarta.annotation.Generated("com.microsoft.kiota")
327+
public class PatchRequestConfiguration extends BaseRequestConfiguration {
328+
}
230329
}

src/main/java/com/microsoft/graph/generated/deviceappmanagement/DeviceAppManagementRequestBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public DeviceAppManagementRequestBuilder(@jakarta.annotation.Nonnull final Strin
184184
* Read properties and relationships of the deviceAppManagement object.
185185
* @return a {@link DeviceAppManagement}
186186
* @throws ODataError When receiving a 4XX or 5XX status code
187-
* @see <a href="https://learn.microsoft.com/graph/api/intune-policyset-deviceappmanagement-get?view=graph-rest-1.0">Find more info here</a>
187+
* @see <a href="https://learn.microsoft.com/graph/api/intune-apps-deviceappmanagement-get?view=graph-rest-1.0">Find more info here</a>
188188
*/
189189
@jakarta.annotation.Nullable
190190
public DeviceAppManagement get() {
@@ -195,7 +195,7 @@ public DeviceAppManagement get() {
195195
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
196196
* @return a {@link DeviceAppManagement}
197197
* @throws ODataError When receiving a 4XX or 5XX status code
198-
* @see <a href="https://learn.microsoft.com/graph/api/intune-policyset-deviceappmanagement-get?view=graph-rest-1.0">Find more info here</a>
198+
* @see <a href="https://learn.microsoft.com/graph/api/intune-apps-deviceappmanagement-get?view=graph-rest-1.0">Find more info here</a>
199199
*/
200200
@jakarta.annotation.Nullable
201201
public DeviceAppManagement get(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {

src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedapppolicies/ManagedAppPoliciesRequestBuilder.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,21 @@ public ManagedAppPoliciesRequestBuilder(@jakarta.annotation.Nonnull final String
6060
super(requestAdapter, "{+baseurl}/deviceAppManagement/managedAppPolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl);
6161
}
6262
/**
63-
* List properties and relationships of the managedAppProtection objects.
63+
* List properties and relationships of the managedAppConfiguration objects.
6464
* @return a {@link ManagedAppPolicyCollectionResponse}
6565
* @throws ODataError When receiving a 4XX or 5XX status code
66-
* @see <a href="https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-list?view=graph-rest-1.0">Find more info here</a>
66+
* @see <a href="https://learn.microsoft.com/graph/api/intune-mam-managedappconfiguration-list?view=graph-rest-1.0">Find more info here</a>
6767
*/
6868
@jakarta.annotation.Nullable
6969
public ManagedAppPolicyCollectionResponse get() {
7070
return get(null);
7171
}
7272
/**
73-
* List properties and relationships of the managedAppProtection objects.
73+
* List properties and relationships of the managedAppConfiguration objects.
7474
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
7575
* @return a {@link ManagedAppPolicyCollectionResponse}
7676
* @throws ODataError When receiving a 4XX or 5XX status code
77-
* @see <a href="https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-list?view=graph-rest-1.0">Find more info here</a>
77+
* @see <a href="https://learn.microsoft.com/graph/api/intune-mam-managedappconfiguration-list?view=graph-rest-1.0">Find more info here</a>
7878
*/
7979
@jakarta.annotation.Nullable
8080
public ManagedAppPolicyCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
@@ -109,15 +109,15 @@ public ManagedAppPolicy post(@jakarta.annotation.Nonnull final ManagedAppPolicy
109109
return this.requestAdapter.send(requestInfo, errorMapping, ManagedAppPolicy::createFromDiscriminatorValue);
110110
}
111111
/**
112-
* List properties and relationships of the managedAppProtection objects.
112+
* List properties and relationships of the managedAppConfiguration objects.
113113
* @return a {@link RequestInformation}
114114
*/
115115
@jakarta.annotation.Nonnull
116116
public RequestInformation toGetRequestInformation() {
117117
return toGetRequestInformation(null);
118118
}
119119
/**
120-
* List properties and relationships of the managedAppProtection objects.
120+
* List properties and relationships of the managedAppConfiguration objects.
121121
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
122122
* @return a {@link RequestInformation}
123123
*/
@@ -163,7 +163,7 @@ public ManagedAppPoliciesRequestBuilder withUrl(@jakarta.annotation.Nonnull fina
163163
return new ManagedAppPoliciesRequestBuilder(rawUrl, requestAdapter);
164164
}
165165
/**
166-
* List properties and relationships of the managedAppProtection objects.
166+
* List properties and relationships of the managedAppConfiguration objects.
167167
*/
168168
@jakarta.annotation.Generated("com.microsoft.kiota")
169169
public class GetQueryParameters implements QueryParameters {

src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedapppolicies/item/ManagedAppPolicyItemRequestBuilder.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,21 +64,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume
6464
this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
6565
}
6666
/**
67-
* Read properties and relationships of the windowsInformationProtection object.
67+
* Read properties and relationships of the managedAppConfiguration object.
6868
* @return a {@link ManagedAppPolicy}
6969
* @throws ODataError When receiving a 4XX or 5XX status code
70-
* @see <a href="https://learn.microsoft.com/graph/api/intune-mam-windowsinformationprotection-get?view=graph-rest-1.0">Find more info here</a>
70+
* @see <a href="https://learn.microsoft.com/graph/api/intune-mam-managedappconfiguration-get?view=graph-rest-1.0">Find more info here</a>
7171
*/
7272
@jakarta.annotation.Nullable
7373
public ManagedAppPolicy get() {
7474
return get(null);
7575
}
7676
/**
77-
* Read properties and relationships of the windowsInformationProtection object.
77+
* Read properties and relationships of the managedAppConfiguration object.
7878
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
7979
* @return a {@link ManagedAppPolicy}
8080
* @throws ODataError When receiving a 4XX or 5XX status code
81-
* @see <a href="https://learn.microsoft.com/graph/api/intune-mam-windowsinformationprotection-get?view=graph-rest-1.0">Find more info here</a>
81+
* @see <a href="https://learn.microsoft.com/graph/api/intune-mam-managedappconfiguration-get?view=graph-rest-1.0">Find more info here</a>
8282
*/
8383
@jakarta.annotation.Nullable
8484
public ManagedAppPolicy get(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
@@ -133,15 +133,15 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl
133133
return requestInfo;
134134
}
135135
/**
136-
* Read properties and relationships of the windowsInformationProtection object.
136+
* Read properties and relationships of the managedAppConfiguration object.
137137
* @return a {@link RequestInformation}
138138
*/
139139
@jakarta.annotation.Nonnull
140140
public RequestInformation toGetRequestInformation() {
141141
return toGetRequestInformation(null);
142142
}
143143
/**
144-
* Read properties and relationships of the windowsInformationProtection object.
144+
* Read properties and relationships of the managedAppConfiguration object.
145145
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
146146
* @return a {@link RequestInformation}
147147
*/
@@ -193,7 +193,7 @@ public ManagedAppPolicyItemRequestBuilder withUrl(@jakarta.annotation.Nonnull fi
193193
public class DeleteRequestConfiguration extends BaseRequestConfiguration {
194194
}
195195
/**
196-
* Read properties and relationships of the windowsInformationProtection object.
196+
* Read properties and relationships of the managedAppConfiguration object.
197197
*/
198198
@jakarta.annotation.Generated("com.microsoft.kiota")
199199
public class GetQueryParameters implements QueryParameters {

0 commit comments

Comments
 (0)