Skip to content

Commit 032a87e

Browse files
author
Client Tooling Big Giant Robot
committed
Added new generated request files with build 902045
1 parent dbd3b45 commit 032a87e

File tree

156 files changed

+8860
-167
lines changed

Some content is hidden

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

156 files changed

+8860
-167
lines changed
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
// ------------------------------------------------------------------------------
2+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
3+
// ------------------------------------------------------------------------------
4+
5+
package com.microsoft.graph.requests.generated;
6+
import com.microsoft.graph.requests.extensions.IAppCatalogsRequest;
7+
import com.microsoft.graph.requests.extensions.AppCatalogsRequest;
8+
import com.microsoft.graph.models.extensions.AppCatalogs;
9+
10+
import com.microsoft.graph.concurrency.ICallback;
11+
import com.microsoft.graph.core.ClientException;
12+
import com.microsoft.graph.core.IBaseClient;
13+
import com.microsoft.graph.http.BaseRequest;
14+
import com.microsoft.graph.http.HttpMethod;
15+
import com.microsoft.graph.options.Option;
16+
import com.microsoft.graph.options.QueryOption;
17+
18+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
19+
20+
/**
21+
* The class for the Base App Catalogs Request.
22+
*/
23+
public class BaseAppCatalogsRequest extends BaseRequest implements IBaseAppCatalogsRequest {
24+
25+
/**
26+
* The request for the AppCatalogs
27+
*
28+
* @param requestUrl the request URL
29+
* @param client the service client
30+
* @param requestOptions the options for this request
31+
* @param responseClass the class of the response
32+
*/
33+
public BaseAppCatalogsRequest(final String requestUrl,
34+
final IBaseClient client,
35+
final java.util.List<? extends Option> requestOptions,
36+
final Class<AppCatalogs> responseClass) {
37+
super(requestUrl, client, requestOptions, responseClass);
38+
}
39+
40+
/**
41+
* Gets the AppCatalogs from the service
42+
*
43+
* @param callback the callback to be called after success or failure
44+
*/
45+
public void get(final ICallback<AppCatalogs> callback) {
46+
send(HttpMethod.GET, callback, null);
47+
}
48+
49+
/**
50+
* Gets the AppCatalogs from the service
51+
*
52+
* @return the AppCatalogs from the request
53+
* @throws ClientException this exception occurs if the request was unable to complete for any reason
54+
*/
55+
public AppCatalogs get() throws ClientException {
56+
return send(HttpMethod.GET, null);
57+
}
58+
59+
/**
60+
* Delete this item from the service
61+
*
62+
* @param callback the callback when the deletion action has completed
63+
*/
64+
public void delete(final ICallback<AppCatalogs> callback) {
65+
send(HttpMethod.DELETE, callback, null);
66+
}
67+
68+
/**
69+
* Delete this item from the service
70+
*
71+
* @throws ClientException if there was an exception during the delete operation
72+
*/
73+
public void delete() throws ClientException {
74+
send(HttpMethod.DELETE, null);
75+
}
76+
77+
/**
78+
* Patches this AppCatalogs with a source
79+
*
80+
* @param sourceAppCatalogs the source object with updates
81+
* @param callback the callback to be called after success or failure
82+
*/
83+
public void patch(final AppCatalogs sourceAppCatalogs, final ICallback<AppCatalogs> callback) {
84+
send(HttpMethod.PATCH, callback, sourceAppCatalogs);
85+
}
86+
87+
/**
88+
* Patches this AppCatalogs with a source
89+
*
90+
* @param sourceAppCatalogs the source object with updates
91+
* @return the updated AppCatalogs
92+
* @throws ClientException this exception occurs if the request was unable to complete for any reason
93+
*/
94+
public AppCatalogs patch(final AppCatalogs sourceAppCatalogs) throws ClientException {
95+
return send(HttpMethod.PATCH, sourceAppCatalogs);
96+
}
97+
98+
/**
99+
* Creates a AppCatalogs with a new object
100+
*
101+
* @param newAppCatalogs the new object to create
102+
* @param callback the callback to be called after success or failure
103+
*/
104+
public void post(final AppCatalogs newAppCatalogs, final ICallback<AppCatalogs> callback) {
105+
send(HttpMethod.POST, callback, newAppCatalogs);
106+
}
107+
108+
/**
109+
* Creates a AppCatalogs with a new object
110+
*
111+
* @param newAppCatalogs the new object to create
112+
* @return the created AppCatalogs
113+
* @throws ClientException this exception occurs if the request was unable to complete for any reason
114+
*/
115+
public AppCatalogs post(final AppCatalogs newAppCatalogs) throws ClientException {
116+
return send(HttpMethod.POST, newAppCatalogs);
117+
}
118+
119+
/**
120+
* Sets the select clause for the request
121+
*
122+
* @param value the select clause
123+
* @return the updated request
124+
*/
125+
public IAppCatalogsRequest select(final String value) {
126+
getQueryOptions().add(new QueryOption("$select", value));
127+
return (AppCatalogsRequest)this;
128+
}
129+
130+
/**
131+
* Sets the expand clause for the request
132+
*
133+
* @param value the expand clause
134+
* @return the updated request
135+
*/
136+
public IAppCatalogsRequest expand(final String value) {
137+
getQueryOptions().add(new QueryOption("$expand", value));
138+
return (AppCatalogsRequest)this;
139+
}
140+
141+
}
142+
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
// ------------------------------------------------------------------------------
2+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
3+
// ------------------------------------------------------------------------------
4+
5+
package com.microsoft.graph.requests.generated;
6+
import com.microsoft.graph.requests.extensions.IAppCatalogsRequest;
7+
import com.microsoft.graph.requests.extensions.AppCatalogsRequest;
8+
import com.microsoft.graph.requests.extensions.ITeamsAppCollectionRequestBuilder;
9+
import com.microsoft.graph.requests.extensions.TeamsAppCollectionRequestBuilder;
10+
import com.microsoft.graph.requests.extensions.ITeamsAppRequestBuilder;
11+
import com.microsoft.graph.requests.extensions.TeamsAppRequestBuilder;
12+
13+
import com.microsoft.graph.core.IBaseClient;
14+
import com.microsoft.graph.http.BaseRequestBuilder;
15+
import com.microsoft.graph.options.Option;
16+
import java.util.EnumSet;
17+
18+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
19+
20+
/**
21+
* The class for the Base App Catalogs Request Builder.
22+
*/
23+
public class BaseAppCatalogsRequestBuilder extends BaseRequestBuilder implements IBaseAppCatalogsRequestBuilder {
24+
25+
/**
26+
* The request builder for the AppCatalogs
27+
*
28+
* @param requestUrl the request URL
29+
* @param client the service client
30+
* @param requestOptions the options for this request
31+
*/
32+
public BaseAppCatalogsRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List<? extends Option> requestOptions) {
33+
super(requestUrl, client, requestOptions);
34+
}
35+
36+
/**
37+
* Creates the request
38+
*
39+
* @return the IAppCatalogsRequest instance
40+
*/
41+
public IAppCatalogsRequest buildRequest() {
42+
return buildRequest(getOptions());
43+
}
44+
45+
/**
46+
* Creates the request with specific requestOptions instead of the existing requestOptions
47+
*
48+
* @param requestOptions the options for this request
49+
* @return the IAppCatalogsRequest instance
50+
*/
51+
public IAppCatalogsRequest buildRequest(final java.util.List<? extends Option> requestOptions) {
52+
return new AppCatalogsRequest(getRequestUrl(), getClient(), requestOptions);
53+
}
54+
55+
public ITeamsAppCollectionRequestBuilder teamsApps() {
56+
return new TeamsAppCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("teamsApps"), getClient(), null);
57+
}
58+
59+
public ITeamsAppRequestBuilder teamsApps(final String id) {
60+
return new TeamsAppRequestBuilder(getRequestUrlWithAdditionalSegment("teamsApps") + "/" + id, getClient(), null);
61+
}
62+
}
63+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// ------------------------------------------------------------------------------
2+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
3+
// ------------------------------------------------------------------------------
4+
5+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
6+
package com.microsoft.graph.requests.generated;
7+
import com.microsoft.graph.models.extensions.Channel;
8+
import com.microsoft.graph.requests.extensions.IChannelCollectionRequestBuilder;
9+
import com.microsoft.graph.http.BaseCollectionPage;
10+
11+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
12+
13+
/**
14+
* The class for the Base Channel Collection Page.
15+
*/
16+
public class BaseChannelCollectionPage extends BaseCollectionPage<Channel, IChannelCollectionRequestBuilder> implements IBaseChannelCollectionPage {
17+
18+
/**
19+
* A collection page for Channel
20+
*
21+
* @param response the serialized BaseChannelCollectionResponse from the service
22+
* @param builder the request builder for the next collection page
23+
*/
24+
public BaseChannelCollectionPage(final BaseChannelCollectionResponse response, final IChannelCollectionRequestBuilder builder) {
25+
super(response.value, builder);
26+
}
27+
}
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
// ------------------------------------------------------------------------------
2+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
3+
// ------------------------------------------------------------------------------
4+
5+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
6+
package com.microsoft.graph.requests.generated;
7+
8+
import com.microsoft.graph.concurrency.*;
9+
import com.microsoft.graph.core.*;
10+
import com.microsoft.graph.models.extensions.*;
11+
import com.microsoft.graph.models.generated.*;
12+
import com.microsoft.graph.http.*;
13+
import com.microsoft.graph.requests.extensions.*;
14+
import com.microsoft.graph.requests.generated.*;
15+
import com.microsoft.graph.options.*;
16+
import com.microsoft.graph.serializer.*;
17+
18+
import java.util.Arrays;
19+
import java.util.EnumSet;
20+
21+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
22+
23+
/**
24+
* The class for the Base Channel Collection Request.
25+
*/
26+
public class BaseChannelCollectionRequest extends BaseCollectionRequest<BaseChannelCollectionResponse, IChannelCollectionPage> implements IBaseChannelCollectionRequest {
27+
28+
/**
29+
* The request builder for this collection of Channel
30+
*
31+
* @param requestUrl the request URL
32+
* @param client the service client
33+
* @param requestOptions the options for this request
34+
*/
35+
public BaseChannelCollectionRequest(final String requestUrl, IBaseClient client, final java.util.List<? extends Option> requestOptions) {
36+
super(requestUrl, client, requestOptions, BaseChannelCollectionResponse.class, IChannelCollectionPage.class);
37+
}
38+
39+
public void get(final ICallback<IChannelCollectionPage> callback) {
40+
final IExecutors executors = getBaseRequest().getClient().getExecutors();
41+
executors.performOnBackground(new Runnable() {
42+
@Override
43+
public void run() {
44+
try {
45+
executors.performOnForeground(get(), callback);
46+
} catch (final ClientException e) {
47+
executors.performOnForeground(e, callback);
48+
}
49+
}
50+
});
51+
}
52+
53+
public IChannelCollectionPage get() throws ClientException {
54+
final BaseChannelCollectionResponse response = send();
55+
return buildFromResponse(response);
56+
}
57+
58+
public void post(final Channel newChannel, final ICallback<Channel> callback) {
59+
final String requestUrl = getBaseRequest().getRequestUrl().toString();
60+
new ChannelRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null)
61+
.buildRequest(getBaseRequest().getOptions())
62+
.post(newChannel, callback);
63+
}
64+
65+
public Channel post(final Channel newChannel) throws ClientException {
66+
final String requestUrl = getBaseRequest().getRequestUrl().toString();
67+
return new ChannelRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null)
68+
.buildRequest(getBaseRequest().getOptions())
69+
.post(newChannel);
70+
}
71+
72+
/**
73+
* Sets the expand clause for the request
74+
*
75+
* @param value the expand clause
76+
* @return the updated request
77+
*/
78+
public IChannelCollectionRequest expand(final String value) {
79+
addQueryOption(new QueryOption("$expand", value));
80+
return (ChannelCollectionRequest)this;
81+
}
82+
83+
/**
84+
* Sets the select clause for the request
85+
*
86+
* @param value the select clause
87+
* @return the updated request
88+
*/
89+
public IChannelCollectionRequest select(final String value) {
90+
addQueryOption(new QueryOption("$select", value));
91+
return (ChannelCollectionRequest)this;
92+
}
93+
94+
/**
95+
* Sets the top value for the request
96+
*
97+
* @param value the max number of items to return
98+
* @return the updated request
99+
*/
100+
public IChannelCollectionRequest top(final int value) {
101+
addQueryOption(new QueryOption("$top", value + ""));
102+
return (ChannelCollectionRequest)this;
103+
}
104+
105+
public IChannelCollectionPage buildFromResponse(final BaseChannelCollectionResponse response) {
106+
final IChannelCollectionRequestBuilder builder;
107+
if (response.nextLink != null) {
108+
builder = new ChannelCollectionRequestBuilder(response.nextLink, getBaseRequest().getClient(), /* options */ null);
109+
} else {
110+
builder = null;
111+
}
112+
final ChannelCollectionPage page = new ChannelCollectionPage(response, builder);
113+
page.setRawObject(response.getSerializer(), response.getRawObject());
114+
return page;
115+
}
116+
}

0 commit comments

Comments
 (0)