Skip to content

Commit 40601e9

Browse files
authored
Merge pull request #2648 from microsoftgraph/v1.0/pipelinebuild/230403
Generated models and request builders
2 parents 91950a4 + 5cba5f6 commit 40601e9

615 files changed

Lines changed: 98503 additions & 183 deletions

File tree

Some content is hidden

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

src/main/java/com/microsoft/graph/generated/directory/DirectoryRequestBuilder.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import com.microsoft.graph.directory.onpremisessynchronization.OnPremisesSynchronizationRequestBuilder;
1010
import com.microsoft.graph.directory.publickeyinfrastructure.PublicKeyInfrastructureRequestBuilder;
1111
import com.microsoft.graph.directory.recovery.RecoveryRequestBuilder;
12+
import com.microsoft.graph.directory.remotetenantgroups.RemoteTenantGroupsRequestBuilder;
1213
import com.microsoft.graph.directory.subscriptions.SubscriptionsRequestBuilder;
1314
import com.microsoft.graph.directory.subscriptionswithcommercesubscriptionid.SubscriptionsWithCommerceSubscriptionIdRequestBuilder;
1415
import com.microsoft.graph.models.Directory;
@@ -103,6 +104,14 @@ public PublicKeyInfrastructureRequestBuilder publicKeyInfrastructure() {
103104
public RecoveryRequestBuilder recovery() {
104105
return new RecoveryRequestBuilder(pathParameters, requestAdapter);
105106
}
107+
/**
108+
* Provides operations to manage the remoteTenantGroups property of the microsoft.graph.directory entity.
109+
* @return a {@link RemoteTenantGroupsRequestBuilder}
110+
*/
111+
@jakarta.annotation.Nonnull
112+
public RemoteTenantGroupsRequestBuilder remoteTenantGroups() {
113+
return new RemoteTenantGroupsRequestBuilder(pathParameters, requestAdapter);
114+
}
106115
/**
107116
* Provides operations to manage the subscriptions property of the microsoft.graph.directory entity.
108117
* @return a {@link SubscriptionsRequestBuilder}
Lines changed: 278 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,278 @@
1+
package com.microsoft.graph.directory.remotetenantgroups;
2+
3+
import com.microsoft.graph.directory.remotetenantgroups.count.CountRequestBuilder;
4+
import com.microsoft.graph.directory.remotetenantgroups.item.RemoteTenantGroupItemRequestBuilder;
5+
import com.microsoft.graph.models.odataerrors.ODataError;
6+
import com.microsoft.graph.models.RemoteTenantGroup;
7+
import com.microsoft.graph.models.RemoteTenantGroupCollectionResponse;
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 remoteTenantGroups property of the microsoft.graph.directory entity.
23+
*/
24+
@jakarta.annotation.Generated("com.microsoft.kiota")
25+
public class RemoteTenantGroupsRequestBuilder extends BaseRequestBuilder {
26+
/**
27+
* Provides operations to count the resources in the collection.
28+
* @return a {@link CountRequestBuilder}
29+
* @deprecated
30+
* as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07
31+
*/
32+
@Deprecated
33+
@jakarta.annotation.Nonnull
34+
public CountRequestBuilder count() {
35+
return new CountRequestBuilder(pathParameters, requestAdapter);
36+
}
37+
/**
38+
* Provides operations to manage the remoteTenantGroups property of the microsoft.graph.directory entity.
39+
* @param remoteTenantGroupId The unique identifier of remoteTenantGroup
40+
* @return a {@link RemoteTenantGroupItemRequestBuilder}
41+
* @deprecated
42+
* as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07
43+
*/
44+
@jakarta.annotation.Nonnull
45+
@Deprecated
46+
public RemoteTenantGroupItemRequestBuilder byRemoteTenantGroupId(@jakarta.annotation.Nonnull final String remoteTenantGroupId) {
47+
Objects.requireNonNull(remoteTenantGroupId);
48+
final HashMap<String, Object> urlTplParams = new HashMap<String, Object>(this.pathParameters);
49+
urlTplParams.put("remoteTenantGroup%2Did", remoteTenantGroupId);
50+
return new RemoteTenantGroupItemRequestBuilder(urlTplParams, requestAdapter);
51+
}
52+
/**
53+
* Instantiates a new {@link RemoteTenantGroupsRequestBuilder} and sets the default values.
54+
* @param pathParameters Path parameters for the request
55+
* @param requestAdapter The request adapter to use to execute the requests.
56+
*/
57+
public RemoteTenantGroupsRequestBuilder(@jakarta.annotation.Nonnull final HashMap<String, Object> pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
58+
super(requestAdapter, "{+baseurl}/directory/remoteTenantGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters);
59+
}
60+
/**
61+
* Instantiates a new {@link RemoteTenantGroupsRequestBuilder} and sets the default values.
62+
* @param rawUrl The raw URL to use for the request builder.
63+
* @param requestAdapter The request adapter to use to execute the requests.
64+
*/
65+
public RemoteTenantGroupsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
66+
super(requestAdapter, "{+baseurl}/directory/remoteTenantGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl);
67+
}
68+
/**
69+
* Get a list of the remoteTenantGroup objects and their properties.
70+
* @return a {@link RemoteTenantGroupCollectionResponse}
71+
* @throws ODataError When receiving a 4XX or 5XX status code
72+
* @deprecated
73+
* as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07
74+
* @see <a href="https://learn.microsoft.com/graph/api/directory-list-remotetenantgroups?view=graph-rest-1.0">Find more info here</a>
75+
*/
76+
@jakarta.annotation.Nullable
77+
@Deprecated
78+
public RemoteTenantGroupCollectionResponse get() {
79+
return get(null);
80+
}
81+
/**
82+
* Get a list of the remoteTenantGroup objects and their properties.
83+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
84+
* @return a {@link RemoteTenantGroupCollectionResponse}
85+
* @throws ODataError When receiving a 4XX or 5XX status code
86+
* @deprecated
87+
* as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07
88+
* @see <a href="https://learn.microsoft.com/graph/api/directory-list-remotetenantgroups?view=graph-rest-1.0">Find more info here</a>
89+
*/
90+
@jakarta.annotation.Nullable
91+
@Deprecated
92+
public RemoteTenantGroupCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
93+
final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
94+
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
95+
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
96+
return this.requestAdapter.send(requestInfo, errorMapping, RemoteTenantGroupCollectionResponse::createFromDiscriminatorValue);
97+
}
98+
/**
99+
* Create new navigation property to remoteTenantGroups for directory
100+
* @param body The request body
101+
* @return a {@link RemoteTenantGroup}
102+
* @throws ODataError When receiving a 4XX or 5XX status code
103+
* @deprecated
104+
* as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07
105+
*/
106+
@jakarta.annotation.Nullable
107+
@Deprecated
108+
public RemoteTenantGroup post(@jakarta.annotation.Nonnull final RemoteTenantGroup body) {
109+
return post(body, null);
110+
}
111+
/**
112+
* Create new navigation property to remoteTenantGroups for directory
113+
* @param body The request body
114+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
115+
* @return a {@link RemoteTenantGroup}
116+
* @throws ODataError When receiving a 4XX or 5XX status code
117+
* @deprecated
118+
* as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07
119+
*/
120+
@jakarta.annotation.Nullable
121+
@Deprecated
122+
public RemoteTenantGroup post(@jakarta.annotation.Nonnull final RemoteTenantGroup body, @jakarta.annotation.Nullable final java.util.function.Consumer<PostRequestConfiguration> requestConfiguration) {
123+
Objects.requireNonNull(body);
124+
final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration);
125+
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
126+
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
127+
return this.requestAdapter.send(requestInfo, errorMapping, RemoteTenantGroup::createFromDiscriminatorValue);
128+
}
129+
/**
130+
* Get a list of the remoteTenantGroup objects and their properties.
131+
* @return a {@link RequestInformation}
132+
* @deprecated
133+
* as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07
134+
*/
135+
@jakarta.annotation.Nonnull
136+
@Deprecated
137+
public RequestInformation toGetRequestInformation() {
138+
return toGetRequestInformation(null);
139+
}
140+
/**
141+
* Get a list of the remoteTenantGroup objects and their properties.
142+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
143+
* @return a {@link RequestInformation}
144+
* @deprecated
145+
* as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07
146+
*/
147+
@jakarta.annotation.Nonnull
148+
@Deprecated
149+
public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
150+
final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
151+
requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
152+
requestInfo.headers.tryAdd("Accept", "application/json");
153+
return requestInfo;
154+
}
155+
/**
156+
* Create new navigation property to remoteTenantGroups for directory
157+
* @param body The request body
158+
* @return a {@link RequestInformation}
159+
* @deprecated
160+
* as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07
161+
*/
162+
@jakarta.annotation.Nonnull
163+
@Deprecated
164+
public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RemoteTenantGroup body) {
165+
return toPostRequestInformation(body, null);
166+
}
167+
/**
168+
* Create new navigation property to remoteTenantGroups for directory
169+
* @param body The request body
170+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
171+
* @return a {@link RequestInformation}
172+
* @deprecated
173+
* as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07
174+
*/
175+
@jakarta.annotation.Nonnull
176+
@Deprecated
177+
public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RemoteTenantGroup body, @jakarta.annotation.Nullable final java.util.function.Consumer<PostRequestConfiguration> requestConfiguration) {
178+
Objects.requireNonNull(body);
179+
final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters);
180+
requestInfo.configure(requestConfiguration, PostRequestConfiguration::new);
181+
requestInfo.headers.tryAdd("Accept", "application/json");
182+
requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
183+
return requestInfo;
184+
}
185+
/**
186+
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
187+
* @param rawUrl The raw URL to use for the request builder.
188+
* @return a {@link RemoteTenantGroupsRequestBuilder}
189+
* @deprecated
190+
* as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07
191+
*/
192+
@jakarta.annotation.Nonnull
193+
@Deprecated
194+
public RemoteTenantGroupsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
195+
Objects.requireNonNull(rawUrl);
196+
return new RemoteTenantGroupsRequestBuilder(rawUrl, requestAdapter);
197+
}
198+
/**
199+
* Get a list of the remoteTenantGroup objects and their properties.
200+
*/
201+
@jakarta.annotation.Generated("com.microsoft.kiota")
202+
public class GetQueryParameters implements QueryParameters {
203+
/**
204+
* Include count of items
205+
*/
206+
@jakarta.annotation.Nullable
207+
public Boolean count;
208+
/**
209+
* Expand related entities
210+
*/
211+
@jakarta.annotation.Nullable
212+
public String[] expand;
213+
/**
214+
* Filter items by property values
215+
*/
216+
@jakarta.annotation.Nullable
217+
public String filter;
218+
/**
219+
* Order items by property values
220+
*/
221+
@jakarta.annotation.Nullable
222+
public String[] orderby;
223+
/**
224+
* Search items by search phrases
225+
*/
226+
@jakarta.annotation.Nullable
227+
public String search;
228+
/**
229+
* Select properties to be returned
230+
*/
231+
@jakarta.annotation.Nullable
232+
public String[] select;
233+
/**
234+
* Skip the first n items
235+
*/
236+
@jakarta.annotation.Nullable
237+
public Integer skip;
238+
/**
239+
* Show only the first n items
240+
*/
241+
@jakarta.annotation.Nullable
242+
public Integer top;
243+
/**
244+
* Extracts the query parameters into a map for the URI template parsing.
245+
* @return a {@link Map<String, Object>}
246+
*/
247+
@jakarta.annotation.Nonnull
248+
public Map<String, Object> toQueryParameters() {
249+
final Map<String, Object> allQueryParams = new HashMap();
250+
allQueryParams.put("%24count", count);
251+
allQueryParams.put("%24filter", filter);
252+
allQueryParams.put("%24search", search);
253+
allQueryParams.put("%24skip", skip);
254+
allQueryParams.put("%24top", top);
255+
allQueryParams.put("%24expand", expand);
256+
allQueryParams.put("%24orderby", orderby);
257+
allQueryParams.put("%24select", select);
258+
return allQueryParams;
259+
}
260+
}
261+
/**
262+
* Configuration for the request such as headers, query parameters, and middleware options.
263+
*/
264+
@jakarta.annotation.Generated("com.microsoft.kiota")
265+
public class GetRequestConfiguration extends BaseRequestConfiguration {
266+
/**
267+
* Request query parameters
268+
*/
269+
@jakarta.annotation.Nullable
270+
public GetQueryParameters queryParameters = new GetQueryParameters();
271+
}
272+
/**
273+
* Configuration for the request such as headers, query parameters, and middleware options.
274+
*/
275+
@jakarta.annotation.Generated("com.microsoft.kiota")
276+
public class PostRequestConfiguration extends BaseRequestConfiguration {
277+
}
278+
}

0 commit comments

Comments
 (0)