Skip to content

Commit 16c408f

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 179156
1 parent 2d62d9f commit 16c408f

File tree

151 files changed

+7323
-4332
lines changed

Some content is hidden

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

151 files changed

+7323
-4332
lines changed

src/main/java/com/microsoft/graph/beta/generated/admin/AdminRequestBuilder.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import com.microsoft.graph.beta.admin.dynamics.DynamicsRequestBuilder;
55
import com.microsoft.graph.beta.admin.edge.EdgeRequestBuilder;
66
import com.microsoft.graph.beta.admin.entra.EntraRequestBuilder;
7+
import com.microsoft.graph.beta.admin.exchange.ExchangeRequestBuilder;
78
import com.microsoft.graph.beta.admin.forms.FormsRequestBuilder;
89
import com.microsoft.graph.beta.admin.microsoft365apps.Microsoft365AppsRequestBuilder;
910
import com.microsoft.graph.beta.admin.people.PeopleRequestBuilder;
@@ -64,6 +65,14 @@ public EdgeRequestBuilder edge() {
6465
public EntraRequestBuilder entra() {
6566
return new EntraRequestBuilder(pathParameters, requestAdapter);
6667
}
68+
/**
69+
* Provides operations to manage the exchange property of the microsoft.graph.admin entity.
70+
* @return a {@link ExchangeRequestBuilder}
71+
*/
72+
@jakarta.annotation.Nonnull
73+
public ExchangeRequestBuilder exchange() {
74+
return new ExchangeRequestBuilder(pathParameters, requestAdapter);
75+
}
6776
/**
6877
* Provides operations to manage the forms property of the microsoft.graph.admin entity.
6978
* @return a {@link FormsRequestBuilder}

src/main/java/com/microsoft/graph/beta/generated/education/synchronizationprofiles/item/errors/item/EducationSynchronizationErrorItemRequestBuilder.java renamed to src/main/java/com/microsoft/graph/beta/generated/admin/exchange/ExchangeRequestBuilder.java

Lines changed: 75 additions & 51 deletions
Large diffs are not rendered by default.
Lines changed: 276 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,276 @@
1+
package com.microsoft.graph.beta.admin.exchange.mailboxes;
2+
3+
import com.microsoft.graph.beta.admin.exchange.mailboxes.count.CountRequestBuilder;
4+
import com.microsoft.graph.beta.admin.exchange.mailboxes.item.MailboxItemRequestBuilder;
5+
import com.microsoft.graph.beta.models.Mailbox;
6+
import com.microsoft.graph.beta.models.MailboxCollectionResponse;
7+
import com.microsoft.graph.beta.models.odataerrors.ODataError;
8+
import com.microsoft.kiota.BaseRequestBuilder;
9+
import com.microsoft.kiota.BaseRequestConfiguration;
10+
import com.microsoft.kiota.HttpMethod;
11+
import com.microsoft.kiota.QueryParameters;
12+
import com.microsoft.kiota.RequestAdapter;
13+
import com.microsoft.kiota.RequestInformation;
14+
import com.microsoft.kiota.RequestOption;
15+
import com.microsoft.kiota.serialization.Parsable;
16+
import com.microsoft.kiota.serialization.ParsableFactory;
17+
import java.util.Collection;
18+
import java.util.HashMap;
19+
import java.util.Map;
20+
import java.util.Objects;
21+
/**
22+
* Provides operations to manage the mailboxes property of the microsoft.graph.exchangeAdmin entity.
23+
*/
24+
@jakarta.annotation.Generated("com.microsoft.kiota")
25+
public class MailboxesRequestBuilder extends BaseRequestBuilder {
26+
/**
27+
* Provides operations to count the resources in the collection.
28+
* @return a {@link CountRequestBuilder}
29+
* @deprecated
30+
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport
31+
*/
32+
@Deprecated
33+
@jakarta.annotation.Nonnull
34+
public CountRequestBuilder count() {
35+
return new CountRequestBuilder(pathParameters, requestAdapter);
36+
}
37+
/**
38+
* Provides operations to manage the mailboxes property of the microsoft.graph.exchangeAdmin entity.
39+
* @param mailboxId The unique identifier of mailbox
40+
* @return a {@link MailboxItemRequestBuilder}
41+
* @deprecated
42+
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport
43+
*/
44+
@jakarta.annotation.Nonnull
45+
@Deprecated
46+
public MailboxItemRequestBuilder byMailboxId(@jakarta.annotation.Nonnull final String mailboxId) {
47+
Objects.requireNonNull(mailboxId);
48+
final HashMap<String, Object> urlTplParams = new HashMap<String, Object>(this.pathParameters);
49+
urlTplParams.put("mailbox%2Did", mailboxId);
50+
return new MailboxItemRequestBuilder(urlTplParams, requestAdapter);
51+
}
52+
/**
53+
* Instantiates a new {@link MailboxesRequestBuilder} and sets the default values.
54+
* @param pathParameters Path parameters for the request
55+
* @param requestAdapter The request adapter to use to execute the requests.
56+
*/
57+
public MailboxesRequestBuilder(@jakarta.annotation.Nonnull final HashMap<String, Object> pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
58+
super(requestAdapter, "{+baseurl}/admin/exchange/mailboxes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters);
59+
}
60+
/**
61+
* Instantiates a new {@link MailboxesRequestBuilder} and sets the default values.
62+
* @param rawUrl The raw URL to use for the request builder.
63+
* @param requestAdapter The request adapter to use to execute the requests.
64+
*/
65+
public MailboxesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
66+
super(requestAdapter, "{+baseurl}/admin/exchange/mailboxes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl);
67+
}
68+
/**
69+
* Represents a user's mailboxes.
70+
* @return a {@link MailboxCollectionResponse}
71+
* @throws ODataError When receiving a 4XX or 5XX status code
72+
* @deprecated
73+
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport
74+
*/
75+
@jakarta.annotation.Nullable
76+
@Deprecated
77+
public MailboxCollectionResponse get() {
78+
return get(null);
79+
}
80+
/**
81+
* Represents a user's mailboxes.
82+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
83+
* @return a {@link MailboxCollectionResponse}
84+
* @throws ODataError When receiving a 4XX or 5XX status code
85+
* @deprecated
86+
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport
87+
*/
88+
@jakarta.annotation.Nullable
89+
@Deprecated
90+
public MailboxCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
91+
final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
92+
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
93+
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
94+
return this.requestAdapter.send(requestInfo, errorMapping, MailboxCollectionResponse::createFromDiscriminatorValue);
95+
}
96+
/**
97+
* Create new navigation property to mailboxes for admin
98+
* @param body The request body
99+
* @return a {@link Mailbox}
100+
* @throws ODataError When receiving a 4XX or 5XX status code
101+
* @deprecated
102+
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport
103+
*/
104+
@jakarta.annotation.Nullable
105+
@Deprecated
106+
public Mailbox post(@jakarta.annotation.Nonnull final Mailbox body) {
107+
return post(body, null);
108+
}
109+
/**
110+
* Create new navigation property to mailboxes for admin
111+
* @param body The request body
112+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
113+
* @return a {@link Mailbox}
114+
* @throws ODataError When receiving a 4XX or 5XX status code
115+
* @deprecated
116+
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport
117+
*/
118+
@jakarta.annotation.Nullable
119+
@Deprecated
120+
public Mailbox post(@jakarta.annotation.Nonnull final Mailbox body, @jakarta.annotation.Nullable final java.util.function.Consumer<PostRequestConfiguration> requestConfiguration) {
121+
Objects.requireNonNull(body);
122+
final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration);
123+
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
124+
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
125+
return this.requestAdapter.send(requestInfo, errorMapping, Mailbox::createFromDiscriminatorValue);
126+
}
127+
/**
128+
* Represents a user's mailboxes.
129+
* @return a {@link RequestInformation}
130+
* @deprecated
131+
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport
132+
*/
133+
@jakarta.annotation.Nonnull
134+
@Deprecated
135+
public RequestInformation toGetRequestInformation() {
136+
return toGetRequestInformation(null);
137+
}
138+
/**
139+
* Represents a user's mailboxes.
140+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
141+
* @return a {@link RequestInformation}
142+
* @deprecated
143+
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport
144+
*/
145+
@jakarta.annotation.Nonnull
146+
@Deprecated
147+
public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
148+
final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
149+
requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
150+
requestInfo.headers.tryAdd("Accept", "application/json");
151+
return requestInfo;
152+
}
153+
/**
154+
* Create new navigation property to mailboxes for admin
155+
* @param body The request body
156+
* @return a {@link RequestInformation}
157+
* @deprecated
158+
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport
159+
*/
160+
@jakarta.annotation.Nonnull
161+
@Deprecated
162+
public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Mailbox body) {
163+
return toPostRequestInformation(body, null);
164+
}
165+
/**
166+
* Create new navigation property to mailboxes for admin
167+
* @param body The request body
168+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
169+
* @return a {@link RequestInformation}
170+
* @deprecated
171+
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport
172+
*/
173+
@jakarta.annotation.Nonnull
174+
@Deprecated
175+
public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Mailbox body, @jakarta.annotation.Nullable final java.util.function.Consumer<PostRequestConfiguration> requestConfiguration) {
176+
Objects.requireNonNull(body);
177+
final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters);
178+
requestInfo.configure(requestConfiguration, PostRequestConfiguration::new);
179+
requestInfo.headers.tryAdd("Accept", "application/json");
180+
requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
181+
return requestInfo;
182+
}
183+
/**
184+
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
185+
* @param rawUrl The raw URL to use for the request builder.
186+
* @return a {@link MailboxesRequestBuilder}
187+
* @deprecated
188+
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport
189+
*/
190+
@jakarta.annotation.Nonnull
191+
@Deprecated
192+
public MailboxesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
193+
Objects.requireNonNull(rawUrl);
194+
return new MailboxesRequestBuilder(rawUrl, requestAdapter);
195+
}
196+
/**
197+
* Represents a user's mailboxes.
198+
*/
199+
@jakarta.annotation.Generated("com.microsoft.kiota")
200+
public class GetQueryParameters implements QueryParameters {
201+
/**
202+
* Include count of items
203+
*/
204+
@jakarta.annotation.Nullable
205+
public Boolean count;
206+
/**
207+
* Expand related entities
208+
*/
209+
@jakarta.annotation.Nullable
210+
public String[] expand;
211+
/**
212+
* Filter items by property values
213+
*/
214+
@jakarta.annotation.Nullable
215+
public String filter;
216+
/**
217+
* Order items by property values
218+
*/
219+
@jakarta.annotation.Nullable
220+
public String[] orderby;
221+
/**
222+
* Search items by search phrases
223+
*/
224+
@jakarta.annotation.Nullable
225+
public String search;
226+
/**
227+
* Select properties to be returned
228+
*/
229+
@jakarta.annotation.Nullable
230+
public String[] select;
231+
/**
232+
* Skip the first n items
233+
*/
234+
@jakarta.annotation.Nullable
235+
public Integer skip;
236+
/**
237+
* Show only the first n items
238+
*/
239+
@jakarta.annotation.Nullable
240+
public Integer top;
241+
/**
242+
* Extracts the query parameters into a map for the URI template parsing.
243+
* @return a {@link Map<String, Object>}
244+
*/
245+
@jakarta.annotation.Nonnull
246+
public Map<String, Object> toQueryParameters() {
247+
final Map<String, Object> allQueryParams = new HashMap();
248+
allQueryParams.put("%24count", count);
249+
allQueryParams.put("%24filter", filter);
250+
allQueryParams.put("%24search", search);
251+
allQueryParams.put("%24skip", skip);
252+
allQueryParams.put("%24top", top);
253+
allQueryParams.put("%24expand", expand);
254+
allQueryParams.put("%24orderby", orderby);
255+
allQueryParams.put("%24select", select);
256+
return allQueryParams;
257+
}
258+
}
259+
/**
260+
* Configuration for the request such as headers, query parameters, and middleware options.
261+
*/
262+
@jakarta.annotation.Generated("com.microsoft.kiota")
263+
public class GetRequestConfiguration extends BaseRequestConfiguration {
264+
/**
265+
* Request query parameters
266+
*/
267+
@jakarta.annotation.Nullable
268+
public GetQueryParameters queryParameters = new GetQueryParameters();
269+
}
270+
/**
271+
* Configuration for the request such as headers, query parameters, and middleware options.
272+
*/
273+
@jakarta.annotation.Generated("com.microsoft.kiota")
274+
public class PostRequestConfiguration extends BaseRequestConfiguration {
275+
}
276+
}

src/main/java/com/microsoft/graph/beta/generated/education/synchronizationprofiles/count/CountRequestBuilder.java renamed to src/main/java/com/microsoft/graph/beta/generated/admin/exchange/mailboxes/count/CountRequestBuilder.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.microsoft.graph.beta.education.synchronizationprofiles.count;
1+
package com.microsoft.graph.beta.admin.exchange.mailboxes.count;
22

33
import com.microsoft.graph.beta.models.odataerrors.ODataError;
44
import com.microsoft.kiota.BaseRequestBuilder;
@@ -25,22 +25,22 @@ public class CountRequestBuilder extends BaseRequestBuilder {
2525
* @param requestAdapter The request adapter to use to execute the requests.
2626
*/
2727
public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap<String, Object> pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
28-
super(requestAdapter, "{+baseurl}/education/synchronizationProfiles/$count{?%24filter,%24search}", pathParameters);
28+
super(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/$count{?%24filter,%24search}", pathParameters);
2929
}
3030
/**
3131
* Instantiates a new {@link CountRequestBuilder} and sets the default values.
3232
* @param rawUrl The raw URL to use for the request builder.
3333
* @param requestAdapter The request adapter to use to execute the requests.
3434
*/
3535
public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
36-
super(requestAdapter, "{+baseurl}/education/synchronizationProfiles/$count{?%24filter,%24search}", rawUrl);
36+
super(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/$count{?%24filter,%24search}", rawUrl);
3737
}
3838
/**
3939
* Get the number of the resource
4040
* @return a {@link Integer}
4141
* @throws ODataError When receiving a 4XX or 5XX status code
4242
* @deprecated
43-
* The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles
43+
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport
4444
*/
4545
@jakarta.annotation.Nullable
4646
@Deprecated
@@ -53,7 +53,7 @@ public Integer get() {
5353
* @return a {@link Integer}
5454
* @throws ODataError When receiving a 4XX or 5XX status code
5555
* @deprecated
56-
* The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles
56+
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport
5757
*/
5858
@jakarta.annotation.Nullable
5959
@Deprecated
@@ -67,7 +67,7 @@ public Integer get(@jakarta.annotation.Nullable final java.util.function.Consume
6767
* Get the number of the resource
6868
* @return a {@link RequestInformation}
6969
* @deprecated
70-
* The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles
70+
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport
7171
*/
7272
@jakarta.annotation.Nonnull
7373
@Deprecated
@@ -79,7 +79,7 @@ public RequestInformation toGetRequestInformation() {
7979
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
8080
* @return a {@link RequestInformation}
8181
* @deprecated
82-
* The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles
82+
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport
8383
*/
8484
@jakarta.annotation.Nonnull
8585
@Deprecated
@@ -94,7 +94,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f
9494
* @param rawUrl The raw URL to use for the request builder.
9595
* @return a {@link CountRequestBuilder}
9696
* @deprecated
97-
* The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles
97+
* Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport
9898
*/
9999
@jakarta.annotation.Nonnull
100100
@Deprecated

0 commit comments

Comments
 (0)