Skip to content

Commit 545fa47

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 189193
1 parent c94680c commit 545fa47

File tree

163 files changed

+8663
-1431
lines changed

Some content is hidden

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

163 files changed

+8663
-1431
lines changed

src/main/java/com/microsoft/graph/beta/generated/admin/people/PeopleRequestBuilder.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import com.microsoft.graph.beta.admin.people.namepronunciation.NamePronunciationRequestBuilder;
55
import com.microsoft.graph.beta.admin.people.profilecardproperties.ProfileCardPropertiesRequestBuilder;
66
import com.microsoft.graph.beta.admin.people.profilepropertysettings.ProfilePropertySettingsRequestBuilder;
7+
import com.microsoft.graph.beta.admin.people.profilesources.ProfileSourcesRequestBuilder;
8+
import com.microsoft.graph.beta.admin.people.profilesourceswithsourceid.ProfileSourcesWithSourceIdRequestBuilder;
79
import com.microsoft.graph.beta.admin.people.pronouns.PronounsRequestBuilder;
810
import com.microsoft.graph.beta.models.odataerrors.ODataError;
911
import com.microsoft.graph.beta.models.PeopleAdminSettings;
@@ -57,6 +59,14 @@ public ProfileCardPropertiesRequestBuilder profileCardProperties() {
5759
public ProfilePropertySettingsRequestBuilder profilePropertySettings() {
5860
return new ProfilePropertySettingsRequestBuilder(pathParameters, requestAdapter);
5961
}
62+
/**
63+
* Provides operations to manage the profileSources property of the microsoft.graph.peopleAdminSettings entity.
64+
* @return a {@link ProfileSourcesRequestBuilder}
65+
*/
66+
@jakarta.annotation.Nonnull
67+
public ProfileSourcesRequestBuilder profileSources() {
68+
return new ProfileSourcesRequestBuilder(pathParameters, requestAdapter);
69+
}
6070
/**
6171
* Provides operations to manage the pronouns property of the microsoft.graph.peopleAdminSettings entity.
6272
* @return a {@link PronounsRequestBuilder}
@@ -148,6 +158,16 @@ public PeopleAdminSettings patch(@jakarta.annotation.Nonnull final PeopleAdminSe
148158
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
149159
return this.requestAdapter.send(requestInfo, errorMapping, PeopleAdminSettings::createFromDiscriminatorValue);
150160
}
161+
/**
162+
* Provides operations to manage the profileSources property of the microsoft.graph.peopleAdminSettings entity.
163+
* @param sourceId Alternate key of profileSource
164+
* @return a {@link ProfileSourcesWithSourceIdRequestBuilder}
165+
*/
166+
@jakarta.annotation.Nonnull
167+
public ProfileSourcesWithSourceIdRequestBuilder profileSourcesWithSourceId(@jakarta.annotation.Nonnull final String sourceId) {
168+
Objects.requireNonNull(sourceId);
169+
return new ProfileSourcesWithSourceIdRequestBuilder(pathParameters, requestAdapter, sourceId);
170+
}
151171
/**
152172
* Delete navigation property people for admin
153173
* @return a {@link RequestInformation}

src/main/java/com/microsoft/graph/beta/generated/identity/productchanges/ProductChangesRequestBuilder.java renamed to src/main/java/com/microsoft/graph/beta/generated/admin/people/profilesources/ProfileSourcesRequestBuilder.java

Lines changed: 48 additions & 79 deletions
Large diffs are not rendered by default.

src/main/java/com/microsoft/graph/beta/generated/identity/productchanges/count/CountRequestBuilder.java renamed to src/main/java/com/microsoft/graph/beta/generated/admin/people/profilesources/count/CountRequestBuilder.java

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.microsoft.graph.beta.identity.productchanges.count;
1+
package com.microsoft.graph.beta.admin.people.profilesources.count;
22

33
import com.microsoft.graph.beta.models.odataerrors.ODataError;
44
import com.microsoft.kiota.BaseRequestBuilder;
@@ -25,25 +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}/identity/productChanges/$count{?%24filter,%24search}", pathParameters);
28+
super(requestAdapter, "{+baseurl}/admin/people/profileSources/$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}/identity/productChanges/$count{?%24filter,%24search}", rawUrl);
36+
super(requestAdapter, "{+baseurl}/admin/people/profileSources/$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
42-
* @deprecated
43-
* What&apos;s new API is being deprecated and will be removed. as of 2025-04/changeManagement on 2025-04-15 and will be removed 2025-05-15
4442
*/
4543
@jakarta.annotation.Nullable
46-
@Deprecated
4744
public Integer get() {
4845
return get(null);
4946
}
@@ -52,11 +49,8 @@ public Integer get() {
5249
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5350
* @return a {@link Integer}
5451
* @throws ODataError When receiving a 4XX or 5XX status code
55-
* @deprecated
56-
* What&apos;s new API is being deprecated and will be removed. as of 2025-04/changeManagement on 2025-04-15 and will be removed 2025-05-15
5752
*/
5853
@jakarta.annotation.Nullable
59-
@Deprecated
6054
public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
6155
final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
6256
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
@@ -66,23 +60,17 @@ public Integer get(@jakarta.annotation.Nullable final java.util.function.Consume
6660
/**
6761
* Get the number of the resource
6862
* @return a {@link RequestInformation}
69-
* @deprecated
70-
* What&apos;s new API is being deprecated and will be removed. as of 2025-04/changeManagement on 2025-04-15 and will be removed 2025-05-15
7163
*/
7264
@jakarta.annotation.Nonnull
73-
@Deprecated
7465
public RequestInformation toGetRequestInformation() {
7566
return toGetRequestInformation(null);
7667
}
7768
/**
7869
* Get the number of the resource
7970
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
8071
* @return a {@link RequestInformation}
81-
* @deprecated
82-
* What&apos;s new API is being deprecated and will be removed. as of 2025-04/changeManagement on 2025-04-15 and will be removed 2025-05-15
8372
*/
8473
@jakarta.annotation.Nonnull
85-
@Deprecated
8674
public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
8775
final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
8876
requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
@@ -93,11 +81,8 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f
9381
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
9482
* @param rawUrl The raw URL to use for the request builder.
9583
* @return a {@link CountRequestBuilder}
96-
* @deprecated
97-
* What&apos;s new API is being deprecated and will be removed. as of 2025-04/changeManagement on 2025-04-15 and will be removed 2025-05-15
9884
*/
9985
@jakarta.annotation.Nonnull
100-
@Deprecated
10186
public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
10287
Objects.requireNonNull(rawUrl);
10388
return new CountRequestBuilder(rawUrl, requestAdapter);
Lines changed: 231 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,231 @@
1+
package com.microsoft.graph.beta.admin.people.profilesources.item;
2+
3+
import com.microsoft.graph.beta.models.odataerrors.ODataError;
4+
import com.microsoft.graph.beta.models.ProfileSource;
5+
import com.microsoft.kiota.BaseRequestBuilder;
6+
import com.microsoft.kiota.BaseRequestConfiguration;
7+
import com.microsoft.kiota.HttpMethod;
8+
import com.microsoft.kiota.QueryParameters;
9+
import com.microsoft.kiota.RequestAdapter;
10+
import com.microsoft.kiota.RequestInformation;
11+
import com.microsoft.kiota.RequestOption;
12+
import com.microsoft.kiota.serialization.Parsable;
13+
import com.microsoft.kiota.serialization.ParsableFactory;
14+
import java.util.Collection;
15+
import java.util.HashMap;
16+
import java.util.Map;
17+
import java.util.Objects;
18+
/**
19+
* Provides operations to manage the profileSources property of the microsoft.graph.peopleAdminSettings entity.
20+
*/
21+
@jakarta.annotation.Generated("com.microsoft.kiota")
22+
public class ProfileSourceItemRequestBuilder extends BaseRequestBuilder {
23+
/**
24+
* Instantiates a new {@link ProfileSourceItemRequestBuilder} and sets the default values.
25+
* @param pathParameters Path parameters for the request
26+
* @param requestAdapter The request adapter to use to execute the requests.
27+
*/
28+
public ProfileSourceItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap<String, Object> pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
29+
super(requestAdapter, "{+baseurl}/admin/people/profileSources/{profileSource%2Did}{?%24expand,%24select}", pathParameters);
30+
}
31+
/**
32+
* Instantiates a new {@link ProfileSourceItemRequestBuilder} and sets the default values.
33+
* @param rawUrl The raw URL to use for the request builder.
34+
* @param requestAdapter The request adapter to use to execute the requests.
35+
*/
36+
public ProfileSourceItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
37+
super(requestAdapter, "{+baseurl}/admin/people/profileSources/{profileSource%2Did}{?%24expand,%24select}", rawUrl);
38+
}
39+
/**
40+
* Delete a profileSource object.
41+
* @throws ODataError When receiving a 4XX or 5XX status code
42+
* @see <a href="https://learn.microsoft.com/graph/api/profilesource-delete?view=graph-rest-beta">Find more info here</a>
43+
*/
44+
public void delete() {
45+
delete(null);
46+
}
47+
/**
48+
* Delete a profileSource object.
49+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
50+
* @throws ODataError When receiving a 4XX or 5XX status code
51+
* @see <a href="https://learn.microsoft.com/graph/api/profilesource-delete?view=graph-rest-beta">Find more info here</a>
52+
*/
53+
public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer<DeleteRequestConfiguration> requestConfiguration) {
54+
final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
55+
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
56+
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
57+
this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
58+
}
59+
/**
60+
* A collection of profile source settings configured by an administrator in an organization.
61+
* @return a {@link ProfileSource}
62+
* @throws ODataError When receiving a 4XX or 5XX status code
63+
*/
64+
@jakarta.annotation.Nullable
65+
public ProfileSource get() {
66+
return get(null);
67+
}
68+
/**
69+
* A collection of profile source settings configured by an administrator in an organization.
70+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
71+
* @return a {@link ProfileSource}
72+
* @throws ODataError When receiving a 4XX or 5XX status code
73+
*/
74+
@jakarta.annotation.Nullable
75+
public ProfileSource get(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
76+
final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
77+
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
78+
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
79+
return this.requestAdapter.send(requestInfo, errorMapping, ProfileSource::createFromDiscriminatorValue);
80+
}
81+
/**
82+
* Update the properties of a profileSource object.
83+
* @param body The request body
84+
* @return a {@link ProfileSource}
85+
* @throws ODataError When receiving a 4XX or 5XX status code
86+
* @see <a href="https://learn.microsoft.com/graph/api/profilesource-update?view=graph-rest-beta">Find more info here</a>
87+
*/
88+
@jakarta.annotation.Nullable
89+
public ProfileSource patch(@jakarta.annotation.Nonnull final ProfileSource body) {
90+
return patch(body, null);
91+
}
92+
/**
93+
* Update the properties of a profileSource object.
94+
* @param body The request body
95+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
96+
* @return a {@link ProfileSource}
97+
* @throws ODataError When receiving a 4XX or 5XX status code
98+
* @see <a href="https://learn.microsoft.com/graph/api/profilesource-update?view=graph-rest-beta">Find more info here</a>
99+
*/
100+
@jakarta.annotation.Nullable
101+
public ProfileSource patch(@jakarta.annotation.Nonnull final ProfileSource body, @jakarta.annotation.Nullable final java.util.function.Consumer<PatchRequestConfiguration> requestConfiguration) {
102+
Objects.requireNonNull(body);
103+
final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration);
104+
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
105+
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
106+
return this.requestAdapter.send(requestInfo, errorMapping, ProfileSource::createFromDiscriminatorValue);
107+
}
108+
/**
109+
* Delete a profileSource object.
110+
* @return a {@link RequestInformation}
111+
*/
112+
@jakarta.annotation.Nonnull
113+
public RequestInformation toDeleteRequestInformation() {
114+
return toDeleteRequestInformation(null);
115+
}
116+
/**
117+
* Delete a profileSource object.
118+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
119+
* @return a {@link RequestInformation}
120+
*/
121+
@jakarta.annotation.Nonnull
122+
public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer<DeleteRequestConfiguration> requestConfiguration) {
123+
final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters);
124+
requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new);
125+
return requestInfo;
126+
}
127+
/**
128+
* A collection of profile source settings configured by an administrator in an organization.
129+
* @return a {@link RequestInformation}
130+
*/
131+
@jakarta.annotation.Nonnull
132+
public RequestInformation toGetRequestInformation() {
133+
return toGetRequestInformation(null);
134+
}
135+
/**
136+
* A collection of profile source settings configured by an administrator in an organization.
137+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
138+
* @return a {@link RequestInformation}
139+
*/
140+
@jakarta.annotation.Nonnull
141+
public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
142+
final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
143+
requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
144+
requestInfo.headers.tryAdd("Accept", "application/json");
145+
return requestInfo;
146+
}
147+
/**
148+
* Update the properties of a profileSource object.
149+
* @param body The request body
150+
* @return a {@link RequestInformation}
151+
*/
152+
@jakarta.annotation.Nonnull
153+
public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ProfileSource body) {
154+
return toPatchRequestInformation(body, null);
155+
}
156+
/**
157+
* Update the properties of a profileSource object.
158+
* @param body The request body
159+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
160+
* @return a {@link RequestInformation}
161+
*/
162+
@jakarta.annotation.Nonnull
163+
public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ProfileSource body, @jakarta.annotation.Nullable final java.util.function.Consumer<PatchRequestConfiguration> requestConfiguration) {
164+
Objects.requireNonNull(body);
165+
final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters);
166+
requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new);
167+
requestInfo.headers.tryAdd("Accept", "application/json");
168+
requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
169+
return requestInfo;
170+
}
171+
/**
172+
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
173+
* @param rawUrl The raw URL to use for the request builder.
174+
* @return a {@link ProfileSourceItemRequestBuilder}
175+
*/
176+
@jakarta.annotation.Nonnull
177+
public ProfileSourceItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
178+
Objects.requireNonNull(rawUrl);
179+
return new ProfileSourceItemRequestBuilder(rawUrl, requestAdapter);
180+
}
181+
/**
182+
* Configuration for the request such as headers, query parameters, and middleware options.
183+
*/
184+
@jakarta.annotation.Generated("com.microsoft.kiota")
185+
public class DeleteRequestConfiguration extends BaseRequestConfiguration {
186+
}
187+
/**
188+
* A collection of profile source settings configured by an administrator in an organization.
189+
*/
190+
@jakarta.annotation.Generated("com.microsoft.kiota")
191+
public class GetQueryParameters implements QueryParameters {
192+
/**
193+
* Expand related entities
194+
*/
195+
@jakarta.annotation.Nullable
196+
public String[] expand;
197+
/**
198+
* Select properties to be returned
199+
*/
200+
@jakarta.annotation.Nullable
201+
public String[] select;
202+
/**
203+
* Extracts the query parameters into a map for the URI template parsing.
204+
* @return a {@link Map<String, Object>}
205+
*/
206+
@jakarta.annotation.Nonnull
207+
public Map<String, Object> toQueryParameters() {
208+
final Map<String, Object> allQueryParams = new HashMap();
209+
allQueryParams.put("%24expand", expand);
210+
allQueryParams.put("%24select", select);
211+
return allQueryParams;
212+
}
213+
}
214+
/**
215+
* Configuration for the request such as headers, query parameters, and middleware options.
216+
*/
217+
@jakarta.annotation.Generated("com.microsoft.kiota")
218+
public class GetRequestConfiguration extends BaseRequestConfiguration {
219+
/**
220+
* Request query parameters
221+
*/
222+
@jakarta.annotation.Nullable
223+
public GetQueryParameters queryParameters = new GetQueryParameters();
224+
}
225+
/**
226+
* Configuration for the request such as headers, query parameters, and middleware options.
227+
*/
228+
@jakarta.annotation.Generated("com.microsoft.kiota")
229+
public class PatchRequestConfiguration extends BaseRequestConfiguration {
230+
}
231+
}

0 commit comments

Comments
 (0)