Skip to content

Commit 4595b86

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 210015
1 parent ab570ed commit 4595b86

File tree

434 files changed

+25837
-1584
lines changed

Some content is hidden

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

434 files changed

+25837
-1584
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
@@ -1,6 +1,7 @@
11
package com.microsoft.graph.beta.admin;
22

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

0 commit comments

Comments
 (0)