Skip to content

Commit 0167d8a

Browse files
authored
Merge pull request #2142 from microsoftgraph/v1.0/pipelinebuild/161941
Generated models and request builders
2 parents a6764a9 + c4677a7 commit 0167d8a

File tree

1,222 files changed

+357314
-601
lines changed

Some content is hidden

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

1,222 files changed

+357314
-601
lines changed

src/main/java/com/microsoft/graph/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.admin.edge.EdgeRequestBuilder;
44
import com.microsoft.graph.admin.microsoft365apps.Microsoft365AppsRequestBuilder;
55
import com.microsoft.graph.admin.people.PeopleRequestBuilder;
6+
import com.microsoft.graph.admin.reportsettings.ReportSettingsRequestBuilder;
67
import com.microsoft.graph.admin.serviceannouncement.ServiceAnnouncementRequestBuilder;
78
import com.microsoft.graph.admin.sharepoint.SharepointRequestBuilder;
89
import com.microsoft.graph.models.Admin;
@@ -49,6 +50,14 @@ public Microsoft365AppsRequestBuilder microsoft365Apps() {
4950
public PeopleRequestBuilder people() {
5051
return new PeopleRequestBuilder(pathParameters, requestAdapter);
5152
}
53+
/**
54+
* Provides operations to manage the reportSettings property of the microsoft.graph.admin entity.
55+
* @return a {@link ReportSettingsRequestBuilder}
56+
*/
57+
@jakarta.annotation.Nonnull
58+
public ReportSettingsRequestBuilder reportSettings() {
59+
return new ReportSettingsRequestBuilder(pathParameters, requestAdapter);
60+
}
5261
/**
5362
* Provides operations to manage the serviceAnnouncement property of the microsoft.graph.admin entity.
5463
* @return a {@link ServiceAnnouncementRequestBuilder}
Lines changed: 232 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,232 @@
1+
package com.microsoft.graph.admin.reportsettings;
2+
3+
import com.microsoft.graph.models.AdminReportSettings;
4+
import com.microsoft.graph.models.odataerrors.ODataError;
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 reportSettings property of the microsoft.graph.admin entity.
20+
*/
21+
@jakarta.annotation.Generated("com.microsoft.kiota")
22+
public class ReportSettingsRequestBuilder extends BaseRequestBuilder {
23+
/**
24+
* Instantiates a new {@link ReportSettingsRequestBuilder} 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 ReportSettingsRequestBuilder(@jakarta.annotation.Nonnull final HashMap<String, Object> pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
29+
super(requestAdapter, "{+baseurl}/admin/reportSettings{?%24expand,%24select}", pathParameters);
30+
}
31+
/**
32+
* Instantiates a new {@link ReportSettingsRequestBuilder} 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 ReportSettingsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
37+
super(requestAdapter, "{+baseurl}/admin/reportSettings{?%24expand,%24select}", rawUrl);
38+
}
39+
/**
40+
* Delete navigation property reportSettings for admin
41+
* @throws ODataError When receiving a 4XX or 5XX status code
42+
*/
43+
public void delete() {
44+
delete(null);
45+
}
46+
/**
47+
* Delete navigation property reportSettings for admin
48+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
49+
* @throws ODataError When receiving a 4XX or 5XX status code
50+
*/
51+
public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer<DeleteRequestConfiguration> requestConfiguration) {
52+
final RequestInformation requestInfo = toDeleteRequestInformation(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+
* Get the tenant-level settings for Microsoft 365 reports.
59+
* @return a {@link AdminReportSettings}
60+
* @throws ODataError When receiving a 4XX or 5XX status code
61+
* @see <a href="https://learn.microsoft.com/graph/api/adminreportsettings-get?view=graph-rest-1.0">Find more info here</a>
62+
*/
63+
@jakarta.annotation.Nullable
64+
public AdminReportSettings get() {
65+
return get(null);
66+
}
67+
/**
68+
* Get the tenant-level settings for Microsoft 365 reports.
69+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
70+
* @return a {@link AdminReportSettings}
71+
* @throws ODataError When receiving a 4XX or 5XX status code
72+
* @see <a href="https://learn.microsoft.com/graph/api/adminreportsettings-get?view=graph-rest-1.0">Find more info here</a>
73+
*/
74+
@jakarta.annotation.Nullable
75+
public AdminReportSettings 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, AdminReportSettings::createFromDiscriminatorValue);
80+
}
81+
/**
82+
* Update tenant-level settings for Microsoft 365 reports.
83+
* @param body The request body
84+
* @return a {@link AdminReportSettings}
85+
* @throws ODataError When receiving a 4XX or 5XX status code
86+
* @see <a href="https://learn.microsoft.com/graph/api/adminreportsettings-update?view=graph-rest-1.0">Find more info here</a>
87+
*/
88+
@jakarta.annotation.Nullable
89+
public AdminReportSettings patch(@jakarta.annotation.Nonnull final AdminReportSettings body) {
90+
return patch(body, null);
91+
}
92+
/**
93+
* Update tenant-level settings for Microsoft 365 reports.
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 AdminReportSettings}
97+
* @throws ODataError When receiving a 4XX or 5XX status code
98+
* @see <a href="https://learn.microsoft.com/graph/api/adminreportsettings-update?view=graph-rest-1.0">Find more info here</a>
99+
*/
100+
@jakarta.annotation.Nullable
101+
public AdminReportSettings patch(@jakarta.annotation.Nonnull final AdminReportSettings 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, AdminReportSettings::createFromDiscriminatorValue);
107+
}
108+
/**
109+
* Delete navigation property reportSettings for admin
110+
* @return a {@link RequestInformation}
111+
*/
112+
@jakarta.annotation.Nonnull
113+
public RequestInformation toDeleteRequestInformation() {
114+
return toDeleteRequestInformation(null);
115+
}
116+
/**
117+
* Delete navigation property reportSettings for admin
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+
requestInfo.headers.tryAdd("Accept", "application/json");
126+
return requestInfo;
127+
}
128+
/**
129+
* Get the tenant-level settings for Microsoft 365 reports.
130+
* @return a {@link RequestInformation}
131+
*/
132+
@jakarta.annotation.Nonnull
133+
public RequestInformation toGetRequestInformation() {
134+
return toGetRequestInformation(null);
135+
}
136+
/**
137+
* Get the tenant-level settings for Microsoft 365 reports.
138+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
139+
* @return a {@link RequestInformation}
140+
*/
141+
@jakarta.annotation.Nonnull
142+
public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
143+
final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
144+
requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
145+
requestInfo.headers.tryAdd("Accept", "application/json");
146+
return requestInfo;
147+
}
148+
/**
149+
* Update tenant-level settings for Microsoft 365 reports.
150+
* @param body The request body
151+
* @return a {@link RequestInformation}
152+
*/
153+
@jakarta.annotation.Nonnull
154+
public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final AdminReportSettings body) {
155+
return toPatchRequestInformation(body, null);
156+
}
157+
/**
158+
* Update tenant-level settings for Microsoft 365 reports.
159+
* @param body The request body
160+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
161+
* @return a {@link RequestInformation}
162+
*/
163+
@jakarta.annotation.Nonnull
164+
public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final AdminReportSettings body, @jakarta.annotation.Nullable final java.util.function.Consumer<PatchRequestConfiguration> requestConfiguration) {
165+
Objects.requireNonNull(body);
166+
final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters);
167+
requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new);
168+
requestInfo.headers.tryAdd("Accept", "application/json");
169+
requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
170+
return requestInfo;
171+
}
172+
/**
173+
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
174+
* @param rawUrl The raw URL to use for the request builder.
175+
* @return a {@link ReportSettingsRequestBuilder}
176+
*/
177+
@jakarta.annotation.Nonnull
178+
public ReportSettingsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
179+
Objects.requireNonNull(rawUrl);
180+
return new ReportSettingsRequestBuilder(rawUrl, requestAdapter);
181+
}
182+
/**
183+
* Configuration for the request such as headers, query parameters, and middleware options.
184+
*/
185+
@jakarta.annotation.Generated("com.microsoft.kiota")
186+
public class DeleteRequestConfiguration extends BaseRequestConfiguration {
187+
}
188+
/**
189+
* Get the tenant-level settings for Microsoft 365 reports.
190+
*/
191+
@jakarta.annotation.Generated("com.microsoft.kiota")
192+
public class GetQueryParameters implements QueryParameters {
193+
/**
194+
* Expand related entities
195+
*/
196+
@jakarta.annotation.Nullable
197+
public String[] expand;
198+
/**
199+
* Select properties to be returned
200+
*/
201+
@jakarta.annotation.Nullable
202+
public String[] select;
203+
/**
204+
* Extracts the query parameters into a map for the URI template parsing.
205+
* @return a {@link Map<String, Object>}
206+
*/
207+
@jakarta.annotation.Nonnull
208+
public Map<String, Object> toQueryParameters() {
209+
final Map<String, Object> allQueryParams = new HashMap();
210+
allQueryParams.put("%24expand", expand);
211+
allQueryParams.put("%24select", select);
212+
return allQueryParams;
213+
}
214+
}
215+
/**
216+
* Configuration for the request such as headers, query parameters, and middleware options.
217+
*/
218+
@jakarta.annotation.Generated("com.microsoft.kiota")
219+
public class GetRequestConfiguration extends BaseRequestConfiguration {
220+
/**
221+
* Request query parameters
222+
*/
223+
@jakarta.annotation.Nullable
224+
public GetQueryParameters queryParameters = new GetQueryParameters();
225+
}
226+
/**
227+
* Configuration for the request such as headers, query parameters, and middleware options.
228+
*/
229+
@jakarta.annotation.Generated("com.microsoft.kiota")
230+
public class PatchRequestConfiguration extends BaseRequestConfiguration {
231+
}
232+
}

src/main/java/com/microsoft/graph/generated/applications/item/owners/OwnersRequestBuilder.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public OwnersRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @ja
104104
super(requestAdapter, "{+baseurl}/applications/{application%2Did}/owners{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl);
105105
}
106106
/**
107-
* Retrieve a list of owners for an application that are directoryObject objects.
107+
* Retrieve a list of owners for an application that are directoryObject types.
108108
* @return a {@link DirectoryObjectCollectionResponse}
109109
* @throws ODataError When receiving a 4XX or 5XX status code
110110
* @see <a href="https://learn.microsoft.com/graph/api/application-list-owners?view=graph-rest-1.0">Find more info here</a>
@@ -114,7 +114,7 @@ public DirectoryObjectCollectionResponse get() {
114114
return get(null);
115115
}
116116
/**
117-
* Retrieve a list of owners for an application that are directoryObject objects.
117+
* Retrieve a list of owners for an application that are directoryObject types.
118118
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
119119
* @return a {@link DirectoryObjectCollectionResponse}
120120
* @throws ODataError When receiving a 4XX or 5XX status code
@@ -128,15 +128,15 @@ public DirectoryObjectCollectionResponse get(@jakarta.annotation.Nullable final
128128
return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObjectCollectionResponse::createFromDiscriminatorValue);
129129
}
130130
/**
131-
* Retrieve a list of owners for an application that are directoryObject objects.
131+
* Retrieve a list of owners for an application that are directoryObject types.
132132
* @return a {@link RequestInformation}
133133
*/
134134
@jakarta.annotation.Nonnull
135135
public RequestInformation toGetRequestInformation() {
136136
return toGetRequestInformation(null);
137137
}
138138
/**
139-
* Retrieve a list of owners for an application that are directoryObject objects.
139+
* Retrieve a list of owners for an application that are directoryObject types.
140140
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
141141
* @return a {@link RequestInformation}
142142
*/
@@ -158,7 +158,7 @@ public OwnersRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw
158158
return new OwnersRequestBuilder(rawUrl, requestAdapter);
159159
}
160160
/**
161-
* Retrieve a list of owners for an application that are directoryObject objects.
161+
* Retrieve a list of owners for an application that are directoryObject types.
162162
*/
163163
@jakarta.annotation.Generated("com.microsoft.kiota")
164164
public class GetQueryParameters implements QueryParameters {

0 commit comments

Comments
 (0)