Skip to content

Commit 13d2aa1

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 214955
1 parent 8047bdf commit 13d2aa1

File tree

287 files changed

+19933
-1057
lines changed

Some content is hidden

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

287 files changed

+19933
-1057
lines changed

src/main/java/com/microsoft/graph/beta/generated/admin/configurationmanagement/configurationsnapshots/ConfigurationSnapshotsRequestBuilder.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,21 @@ public ConfigurationSnapshotsRequestBuilder(@jakarta.annotation.Nonnull final St
6060
super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationSnapshots{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl);
6161
}
6262
/**
63-
* A container for configuration snapshot baselines.
63+
* Get a list of configurationBaseline objects that represent configuration snapshots and their properties.
6464
* @return a {@link ConfigurationBaselineCollectionResponse}
6565
* @throws ODataError When receiving a 4XX or 5XX status code
66+
* @see <a href="https://learn.microsoft.com/graph/api/configurationmanagement-list-configurationsnapshots?view=graph-rest-beta">Find more info here</a>
6667
*/
6768
@jakarta.annotation.Nullable
6869
public ConfigurationBaselineCollectionResponse get() {
6970
return get(null);
7071
}
7172
/**
72-
* A container for configuration snapshot baselines.
73+
* Get a list of configurationBaseline objects that represent configuration snapshots and their properties.
7374
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
7475
* @return a {@link ConfigurationBaselineCollectionResponse}
7576
* @throws ODataError When receiving a 4XX or 5XX status code
77+
* @see <a href="https://learn.microsoft.com/graph/api/configurationmanagement-list-configurationsnapshots?view=graph-rest-beta">Find more info here</a>
7678
*/
7779
@jakarta.annotation.Nullable
7880
public ConfigurationBaselineCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
@@ -107,15 +109,15 @@ public ConfigurationBaseline post(@jakarta.annotation.Nonnull final Configuratio
107109
return this.requestAdapter.send(requestInfo, errorMapping, ConfigurationBaseline::createFromDiscriminatorValue);
108110
}
109111
/**
110-
* A container for configuration snapshot baselines.
112+
* Get a list of configurationBaseline objects that represent configuration snapshots and their properties.
111113
* @return a {@link RequestInformation}
112114
*/
113115
@jakarta.annotation.Nonnull
114116
public RequestInformation toGetRequestInformation() {
115117
return toGetRequestInformation(null);
116118
}
117119
/**
118-
* A container for configuration snapshot baselines.
120+
* Get a list of configurationBaseline objects that represent configuration snapshots and their properties.
119121
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
120122
* @return a {@link RequestInformation}
121123
*/
@@ -161,7 +163,7 @@ public ConfigurationSnapshotsRequestBuilder withUrl(@jakarta.annotation.Nonnull
161163
return new ConfigurationSnapshotsRequestBuilder(rawUrl, requestAdapter);
162164
}
163165
/**
164-
* A container for configuration snapshot baselines.
166+
* Get a list of configurationBaseline objects that represent configuration snapshots and their properties.
165167
*/
166168
@jakarta.annotation.Generated("com.microsoft.kiota")
167169
public class GetQueryParameters implements QueryParameters {

src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/TargetedMessagesRequestBuilder.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public TargetedMessagesRequestBuilder(@jakarta.annotation.Nonnull final String r
6060
super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl);
6161
}
6262
/**
63-
* Get targetedMessages from chats
63+
* A collection of targeted messages in the chat that are visible only to specific users. Nullable.
6464
* @return a {@link TargetedChatMessageCollectionResponse}
6565
* @throws ODataError When receiving a 4XX or 5XX status code
6666
*/
@@ -69,7 +69,7 @@ public TargetedChatMessageCollectionResponse get() {
6969
return get(null);
7070
}
7171
/**
72-
* Get targetedMessages from chats
72+
* A collection of targeted messages in the chat that are visible only to specific users. Nullable.
7373
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
7474
* @return a {@link TargetedChatMessageCollectionResponse}
7575
* @throws ODataError When receiving a 4XX or 5XX status code
@@ -107,15 +107,15 @@ public TargetedChatMessage post(@jakarta.annotation.Nonnull final TargetedChatMe
107107
return this.requestAdapter.send(requestInfo, errorMapping, TargetedChatMessage::createFromDiscriminatorValue);
108108
}
109109
/**
110-
* Get targetedMessages from chats
110+
* A collection of targeted messages in the chat that are visible only to specific users. Nullable.
111111
* @return a {@link RequestInformation}
112112
*/
113113
@jakarta.annotation.Nonnull
114114
public RequestInformation toGetRequestInformation() {
115115
return toGetRequestInformation(null);
116116
}
117117
/**
118-
* Get targetedMessages from chats
118+
* A collection of targeted messages in the chat that are visible only to specific users. Nullable.
119119
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
120120
* @return a {@link RequestInformation}
121121
*/
@@ -161,7 +161,7 @@ public TargetedMessagesRequestBuilder withUrl(@jakarta.annotation.Nonnull final
161161
return new TargetedMessagesRequestBuilder(rawUrl, requestAdapter);
162162
}
163163
/**
164-
* Get targetedMessages from chats
164+
* A collection of targeted messages in the chat that are visible only to specific users. Nullable.
165165
*/
166166
@jakarta.annotation.Generated("com.microsoft.kiota")
167167
public class GetQueryParameters implements QueryParameters {

src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/TargetedChatMessageItemRequestBuilder.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume
7373
this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
7474
}
7575
/**
76-
* Get targetedMessages from chats
76+
* A collection of targeted messages in the chat that are visible only to specific users. Nullable.
7777
* @return a {@link TargetedChatMessage}
7878
* @throws ODataError When receiving a 4XX or 5XX status code
7979
*/
@@ -82,7 +82,7 @@ public TargetedChatMessage get() {
8282
return get(null);
8383
}
8484
/**
85-
* Get targetedMessages from chats
85+
* A collection of targeted messages in the chat that are visible only to specific users. Nullable.
8686
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
8787
* @return a {@link TargetedChatMessage}
8888
* @throws ODataError When receiving a 4XX or 5XX status code
@@ -140,15 +140,15 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl
140140
return requestInfo;
141141
}
142142
/**
143-
* Get targetedMessages from chats
143+
* A collection of targeted messages in the chat that are visible only to specific users. Nullable.
144144
* @return a {@link RequestInformation}
145145
*/
146146
@jakarta.annotation.Nonnull
147147
public RequestInformation toGetRequestInformation() {
148148
return toGetRequestInformation(null);
149149
}
150150
/**
151-
* Get targetedMessages from chats
151+
* A collection of targeted messages in the chat that are visible only to specific users. Nullable.
152152
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
153153
* @return a {@link RequestInformation}
154154
*/
@@ -200,7 +200,7 @@ public TargetedChatMessageItemRequestBuilder withUrl(@jakarta.annotation.Nonnull
200200
public class DeleteRequestConfiguration extends BaseRequestConfiguration {
201201
}
202202
/**
203-
* Get targetedMessages from chats
203+
* A collection of targeted messages in the chat that are visible only to specific users. Nullable.
204204
*/
205205
@jakarta.annotation.Generated("com.microsoft.kiota")
206206
public class GetQueryParameters implements QueryParameters {

src/main/java/com/microsoft/graph/beta/generated/devicemanagement/virtualendpoint/deviceimages/item/CloudPcDeviceImageItemRequestBuilder.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.microsoft.graph.beta.devicemanagement.virtualendpoint.deviceimages.item;
22

3+
import com.microsoft.graph.beta.devicemanagement.virtualendpoint.deviceimages.item.retryupload.RetryUploadRequestBuilder;
34
import com.microsoft.graph.beta.devicemanagement.virtualendpoint.deviceimages.item.reupload.ReuploadRequestBuilder;
45
import com.microsoft.graph.beta.models.CloudPcDeviceImage;
56
import com.microsoft.graph.beta.models.odataerrors.ODataError;
@@ -21,6 +22,14 @@
2122
*/
2223
@jakarta.annotation.Generated("com.microsoft.kiota")
2324
public class CloudPcDeviceImageItemRequestBuilder extends BaseRequestBuilder {
25+
/**
26+
* Provides operations to call the retryUpload method.
27+
* @return a {@link RetryUploadRequestBuilder}
28+
*/
29+
@jakarta.annotation.Nonnull
30+
public RetryUploadRequestBuilder retryUpload() {
31+
return new RetryUploadRequestBuilder(pathParameters, requestAdapter);
32+
}
2433
/**
2534
* Provides operations to call the reupload method.
2635
* @return a {@link ReuploadRequestBuilder}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
package com.microsoft.graph.beta.devicemanagement.virtualendpoint.deviceimages.item.retryupload;
2+
3+
import com.microsoft.graph.beta.models.odataerrors.ODataError;
4+
import com.microsoft.kiota.BaseRequestBuilder;
5+
import com.microsoft.kiota.BaseRequestConfiguration;
6+
import com.microsoft.kiota.HttpMethod;
7+
import com.microsoft.kiota.RequestAdapter;
8+
import com.microsoft.kiota.RequestInformation;
9+
import com.microsoft.kiota.RequestOption;
10+
import com.microsoft.kiota.serialization.Parsable;
11+
import com.microsoft.kiota.serialization.ParsableFactory;
12+
import java.util.Collection;
13+
import java.util.HashMap;
14+
import java.util.Map;
15+
import java.util.Objects;
16+
/**
17+
* Provides operations to call the retryUpload method.
18+
*/
19+
@jakarta.annotation.Generated("com.microsoft.kiota")
20+
public class RetryUploadRequestBuilder extends BaseRequestBuilder {
21+
/**
22+
* Instantiates a new {@link RetryUploadRequestBuilder} and sets the default values.
23+
* @param pathParameters Path parameters for the request
24+
* @param requestAdapter The request adapter to use to execute the requests.
25+
*/
26+
public RetryUploadRequestBuilder(@jakarta.annotation.Nonnull final HashMap<String, Object> pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
27+
super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/deviceImages/{cloudPcDeviceImage%2Did}/retryUpload", pathParameters);
28+
}
29+
/**
30+
* Instantiates a new {@link RetryUploadRequestBuilder} and sets the default values.
31+
* @param rawUrl The raw URL to use for the request builder.
32+
* @param requestAdapter The request adapter to use to execute the requests.
33+
*/
34+
public RetryUploadRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
35+
super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/deviceImages/{cloudPcDeviceImage%2Did}/retryUpload", rawUrl);
36+
}
37+
/**
38+
* Retry the upload of a cloudPcDeviceImage object that previously failed.
39+
* @throws ODataError When receiving a 4XX or 5XX status code
40+
* @see <a href="https://learn.microsoft.com/graph/api/cloudpcdeviceimage-retryupload?view=graph-rest-beta">Find more info here</a>
41+
*/
42+
public void post() {
43+
post(null);
44+
}
45+
/**
46+
* Retry the upload of a cloudPcDeviceImage object that previously failed.
47+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
48+
* @throws ODataError When receiving a 4XX or 5XX status code
49+
* @see <a href="https://learn.microsoft.com/graph/api/cloudpcdeviceimage-retryupload?view=graph-rest-beta">Find more info here</a>
50+
*/
51+
public void post(@jakarta.annotation.Nullable final java.util.function.Consumer<PostRequestConfiguration> requestConfiguration) {
52+
final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration);
53+
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
54+
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
55+
this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
56+
}
57+
/**
58+
* Retry the upload of a cloudPcDeviceImage object that previously failed.
59+
* @return a {@link RequestInformation}
60+
*/
61+
@jakarta.annotation.Nonnull
62+
public RequestInformation toPostRequestInformation() {
63+
return toPostRequestInformation(null);
64+
}
65+
/**
66+
* Retry the upload of a cloudPcDeviceImage object that previously failed.
67+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
68+
* @return a {@link RequestInformation}
69+
*/
70+
@jakarta.annotation.Nonnull
71+
public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer<PostRequestConfiguration> requestConfiguration) {
72+
final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters);
73+
requestInfo.configure(requestConfiguration, PostRequestConfiguration::new);
74+
requestInfo.headers.tryAdd("Accept", "application/json");
75+
return requestInfo;
76+
}
77+
/**
78+
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
79+
* @param rawUrl The raw URL to use for the request builder.
80+
* @return a {@link RetryUploadRequestBuilder}
81+
*/
82+
@jakarta.annotation.Nonnull
83+
public RetryUploadRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
84+
Objects.requireNonNull(rawUrl);
85+
return new RetryUploadRequestBuilder(rawUrl, requestAdapter);
86+
}
87+
/**
88+
* Configuration for the request such as headers, query parameters, and middleware options.
89+
*/
90+
@jakarta.annotation.Generated("com.microsoft.kiota")
91+
public class PostRequestConfiguration extends BaseRequestConfiguration {
92+
}
93+
}

src/main/java/com/microsoft/graph/beta/generated/devicemanagement/virtualendpoint/deviceimages/item/reupload/ReuploadRequestBuilder.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,23 @@ public ReuploadRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @
3737
/**
3838
* Reupload a cloudPcDeviceImage object that failed to upload.
3939
* @throws ODataError When receiving a 4XX or 5XX status code
40+
* @deprecated
41+
* The reupload is deprecated and will not be supported starting June 25, 2026. Please use retryUpload instead. as of 2026-01/reupload on 2026-01-09 and will be removed 2026-06-25
4042
* @see <a href="https://learn.microsoft.com/graph/api/cloudpcdeviceimage-reupload?view=graph-rest-beta">Find more info here</a>
4143
*/
44+
@Deprecated
4245
public void post() {
4346
post(null);
4447
}
4548
/**
4649
* Reupload a cloudPcDeviceImage object that failed to upload.
4750
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
4851
* @throws ODataError When receiving a 4XX or 5XX status code
52+
* @deprecated
53+
* The reupload is deprecated and will not be supported starting June 25, 2026. Please use retryUpload instead. as of 2026-01/reupload on 2026-01-09 and will be removed 2026-06-25
4954
* @see <a href="https://learn.microsoft.com/graph/api/cloudpcdeviceimage-reupload?view=graph-rest-beta">Find more info here</a>
5055
*/
56+
@Deprecated
5157
public void post(@jakarta.annotation.Nullable final java.util.function.Consumer<PostRequestConfiguration> requestConfiguration) {
5258
final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration);
5359
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
@@ -57,17 +63,23 @@ public void post(@jakarta.annotation.Nullable final java.util.function.Consumer<
5763
/**
5864
* Reupload a cloudPcDeviceImage object that failed to upload.
5965
* @return a {@link RequestInformation}
66+
* @deprecated
67+
* The reupload is deprecated and will not be supported starting June 25, 2026. Please use retryUpload instead. as of 2026-01/reupload on 2026-01-09 and will be removed 2026-06-25
6068
*/
6169
@jakarta.annotation.Nonnull
70+
@Deprecated
6271
public RequestInformation toPostRequestInformation() {
6372
return toPostRequestInformation(null);
6473
}
6574
/**
6675
* Reupload a cloudPcDeviceImage object that failed to upload.
6776
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
6877
* @return a {@link RequestInformation}
78+
* @deprecated
79+
* The reupload is deprecated and will not be supported starting June 25, 2026. Please use retryUpload instead. as of 2026-01/reupload on 2026-01-09 and will be removed 2026-06-25
6980
*/
7081
@jakarta.annotation.Nonnull
82+
@Deprecated
7183
public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer<PostRequestConfiguration> requestConfiguration) {
7284
final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters);
7385
requestInfo.configure(requestConfiguration, PostRequestConfiguration::new);
@@ -78,8 +90,11 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable
7890
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
7991
* @param rawUrl The raw URL to use for the request builder.
8092
* @return a {@link ReuploadRequestBuilder}
93+
* @deprecated
94+
* The reupload is deprecated and will not be supported starting June 25, 2026. Please use retryUpload instead. as of 2026-01/reupload on 2026-01-09 and will be removed 2026-06-25
8195
*/
8296
@jakarta.annotation.Nonnull
97+
@Deprecated
8398
public ReuploadRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
8499
Objects.requireNonNull(rawUrl);
85100
return new ReuploadRequestBuilder(rawUrl, requestAdapter);

0 commit comments

Comments
 (0)