Skip to content

Commit c13dcf0

Browse files
authored
Merge pull request #1034 from microsoftgraph/beta/pipelinebuild/161941
Generated beta models and request builders
2 parents dd220e9 + 0a42592 commit c13dcf0

File tree

3,680 files changed

+572329
-1563
lines changed

Some content is hidden

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

3,680 files changed

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

0 commit comments

Comments
 (0)