Skip to content

Commit c48d587

Browse files
authored
Merge pull request #1901 from microsoftgraph/v1.0/pipelinebuild/141029
Generated models and request builders
2 parents 3a4a7d9 + 10ce364 commit c48d587

File tree

483 files changed

+40062
-1447
lines changed

Some content is hidden

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

483 files changed

+40062
-1447
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Changed
1313

14+
## [6.5.0] - 2024-03-26
15+
16+
### Added
17+
18+
- Weekly generated v1.0 models and request builders using Kiota
19+
1420
## [6.4.0] - 2024-02-28
1521

1622
### Added

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repositories {
2020
2121
dependencies {
2222
// Include the sdk as a dependency
23-
implementation 'com.microsoft.graph:microsoft-graph:6.4.0'
23+
implementation 'com.microsoft.graph:microsoft-graph:6.5.0'
2424
// This dependency is only needed if you are using a TokenCredential object for authentication
2525
implementation 'com.azure:azure-identity:1.11.0'
2626
}
@@ -35,7 +35,7 @@ Add the dependency in `dependencies` in pom.xml
3535
<!-- Include the sdk as a dependency -->
3636
<groupId>com.microsoft.graph</groupId>
3737
<artifactId>microsoft-graph</artifactId>
38-
<version>6.4.0</version>
38+
<version>6.5.0</version>
3939
</dependency>
4040
<dependency>
4141
<!-- This dependency is only needed if you are using a TokenCredential object for authentication -->
@@ -119,3 +119,4 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI
119119

120120

121121

122+

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ org.gradle.caching=true
2626
mavenGroupId = com.microsoft.graph
2727
mavenArtifactId = microsoft-graph
2828
mavenMajorVersion = 6
29-
mavenMinorVersion = 4
29+
mavenMinorVersion = 5
3030
mavenPatchVersion = 0
3131
mavenArtifactSuffix =
3232

@@ -124,5 +124,6 @@ mavenCentralPublishingEnabled=true
124124

125125

126126

127+
127128

128129

src/main/java/com/microsoft/graph/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.admin;
22

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

0 commit comments

Comments
 (0)