Skip to content

Commit 5333d7b

Browse files
authored
Merge pull request #820 from microsoftgraph/feature/inherited-content
adds missing inherited content methods
2 parents a6d7abf + 0ccfbca commit 5333d7b

16 files changed

+1702
-2
lines changed

src/main/java/com/microsoft/graph/requests/CalendarSharingMessageRequestBuilder.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,15 @@ public SingleValueLegacyExtendedPropertyRequestBuilder singleValueExtendedProper
148148
return new SingleValueLegacyExtendedPropertyRequestBuilder(getRequestUrlWithAdditionalSegment("singleValueExtendedProperties") + "/" + id, getClient(), null);
149149
}
150150

151+
/**
152+
* Gets a request builder to get the binary value of the object
153+
* @return the stream request builder
154+
*/
155+
@Nonnull
156+
public CalendarSharingMessageStreamRequestBuilder content() {
157+
return new CalendarSharingMessageStreamRequestBuilder(getRequestUrlWithAdditionalSegment("$value"), getClient(), null);
158+
}
159+
151160
/**
152161
* Gets a builder to execute the method
153162
* @return the request builder
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
// Template Source: BaseStreamRequest.java.tt
2+
// ------------------------------------------------------------------------------
3+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
4+
// ------------------------------------------------------------------------------
5+
6+
package com.microsoft.graph.requests;
7+
8+
import com.microsoft.graph.http.IRequestBuilder;
9+
import com.microsoft.graph.core.ClientException;
10+
import com.microsoft.graph.models.CalendarSharingMessage;
11+
import com.microsoft.graph.models.Calendar;
12+
import com.microsoft.graph.models.Recipient;
13+
import com.microsoft.graph.models.Message;
14+
import java.util.Arrays;
15+
import java.util.EnumSet;
16+
import javax.annotation.Nullable;
17+
import javax.annotation.Nonnull;
18+
import com.microsoft.graph.core.IBaseClient;
19+
import com.microsoft.graph.http.BaseStreamRequest;
20+
21+
import java.io.InputStream;
22+
23+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
24+
25+
/**
26+
* The class for the Calendar Sharing Message Stream Request.
27+
*/
28+
public class CalendarSharingMessageStreamRequest extends BaseStreamRequest<CalendarSharingMessage> {
29+
30+
/**
31+
* The request for the CalendarSharingMessage
32+
*
33+
* @param requestUrl the request URL
34+
* @param client the service client
35+
* @param requestOptions the options for this request
36+
*/
37+
public CalendarSharingMessageStreamRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient<?> client, @Nullable final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {
38+
super(requestUrl, client, requestOptions, CalendarSharingMessage.class);
39+
}
40+
41+
/**
42+
* Gets the contents of this stream
43+
*
44+
* @return a future with the result
45+
*/
46+
@Nonnull
47+
public java.util.concurrent.CompletableFuture<InputStream> getAsync() {
48+
return sendAsync();
49+
}
50+
51+
/**
52+
* Gets the contents of this stream
53+
*
54+
* @return the stream that the caller needs to close
55+
* @throws ClientException an exception occurs if there was an error while the request was sent
56+
*/
57+
@Nullable
58+
public InputStream get() throws ClientException {
59+
return send();
60+
}
61+
62+
/**
63+
* Uploads to the stream
64+
*
65+
* @param fileContents the contents of the stream to upload
66+
* @return a future with the result
67+
*/
68+
@Nonnull
69+
public java.util.concurrent.CompletableFuture<CalendarSharingMessage> putAsync(@Nonnull final byte[] fileContents) {
70+
return sendAsync(fileContents);
71+
}
72+
73+
/**
74+
* Uploads to the stream
75+
*
76+
* @param fileContents the contents of the stream to upload
77+
* @return the result of the upload
78+
* @throws ClientException an exception occurs if there was an error while the request was sent
79+
*/
80+
@Nullable
81+
public CalendarSharingMessage put(@Nonnull final byte[] fileContents) throws ClientException {
82+
return send(fileContents);
83+
}
84+
}
Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
// Template Source: BaseEntityStreamRequestBuilder.java.tt
2+
// ------------------------------------------------------------------------------
3+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
4+
// ------------------------------------------------------------------------------
5+
6+
package com.microsoft.graph.requests;
7+
8+
import com.microsoft.graph.http.IRequestBuilder;
9+
import com.microsoft.graph.core.ClientException;
10+
import com.microsoft.graph.models.CalendarSharingMessage;
11+
import com.microsoft.graph.models.Calendar;
12+
import com.microsoft.graph.models.Recipient;
13+
import com.microsoft.graph.models.Message;
14+
import java.util.Arrays;
15+
import java.util.EnumSet;
16+
import javax.annotation.Nullable;
17+
import javax.annotation.Nonnull;
18+
import com.microsoft.graph.core.IBaseClient;
19+
import com.microsoft.graph.http.BaseRequestBuilder;
20+
import java.io.InputStream;
21+
import com.microsoft.graph.models.MessageForwardParameterSet;
22+
import com.microsoft.graph.models.MessageCopyParameterSet;
23+
import com.microsoft.graph.models.MessageMoveParameterSet;
24+
import com.microsoft.graph.models.MessageCreateForwardParameterSet;
25+
import com.microsoft.graph.models.MessageCreateReplyParameterSet;
26+
import com.microsoft.graph.models.MessageCreateReplyAllParameterSet;
27+
import com.microsoft.graph.models.MessageReplyParameterSet;
28+
import com.microsoft.graph.models.MessageReplyAllParameterSet;
29+
30+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
31+
32+
/**
33+
* The class for the Calendar Sharing Message Stream Request Builder.
34+
*/
35+
public class CalendarSharingMessageStreamRequestBuilder extends BaseRequestBuilder<InputStream> {
36+
37+
/**
38+
* The request builder for the CalendarSharingMessage
39+
*
40+
* @param requestUrl the request URL
41+
* @param client the service client
42+
* @param requestOptions the options for this request
43+
*/
44+
public CalendarSharingMessageStreamRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient<?> client, @Nullable final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {
45+
super(requestUrl, client, requestOptions);
46+
}
47+
48+
/**
49+
* Creates the request
50+
*
51+
* @param requestOptions the options for this request
52+
* @return the CalendarSharingMessageStreamRequest instance
53+
*/
54+
@Nonnull
55+
public CalendarSharingMessageStreamRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) {
56+
return buildRequest(getOptions(requestOptions));
57+
}
58+
59+
/**
60+
* Creates the request with specific options instead of the existing options
61+
*
62+
* @param requestOptions the options for this request
63+
* @return the CalendarSharingMessageStreamRequest instance
64+
*/
65+
@Nonnull
66+
public CalendarSharingMessageStreamRequest buildRequest(@Nonnull final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {
67+
return new CalendarSharingMessageStreamRequest(getRequestUrl(), getClient(), requestOptions);
68+
}
69+
70+
71+
72+
/**
73+
* Gets a builder to execute the method
74+
* @return the request builder
75+
*/
76+
@Nonnull
77+
public CalendarSharingMessageAcceptRequestBuilder accept() {
78+
return new CalendarSharingMessageAcceptRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.accept"), getClient(), null);
79+
}
80+
81+
/**
82+
* Gets a builder to execute the method
83+
* @return the request builder
84+
* @param parameters the parameters for the service method
85+
*/
86+
@Nonnull
87+
public MessageForwardRequestBuilder forward(@Nonnull final MessageForwardParameterSet parameters) {
88+
return new MessageForwardRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.forward"), getClient(), null, parameters);
89+
}
90+
91+
/**
92+
* Gets a builder to execute the method
93+
* @return the request builder
94+
* @param parameters the parameters for the service method
95+
*/
96+
@Nonnull
97+
public MessageCopyRequestBuilder copy(@Nonnull final MessageCopyParameterSet parameters) {
98+
return new MessageCopyRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.copy"), getClient(), null, parameters);
99+
}
100+
101+
/**
102+
* Gets a builder to execute the method
103+
* @return the request builder
104+
* @param parameters the parameters for the service method
105+
*/
106+
@Nonnull
107+
public MessageMoveRequestBuilder move(@Nonnull final MessageMoveParameterSet parameters) {
108+
return new MessageMoveRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.move"), getClient(), null, parameters);
109+
}
110+
111+
/**
112+
* Gets a builder to execute the method
113+
* @return the request builder
114+
* @param parameters the parameters for the service method
115+
*/
116+
@Nonnull
117+
public MessageCreateForwardRequestBuilder createForward(@Nonnull final MessageCreateForwardParameterSet parameters) {
118+
return new MessageCreateForwardRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.createForward"), getClient(), null, parameters);
119+
}
120+
121+
/**
122+
* Gets a builder to execute the method
123+
* @return the request builder
124+
* @param parameters the parameters for the service method
125+
*/
126+
@Nonnull
127+
public MessageCreateReplyRequestBuilder createReply(@Nonnull final MessageCreateReplyParameterSet parameters) {
128+
return new MessageCreateReplyRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.createReply"), getClient(), null, parameters);
129+
}
130+
131+
/**
132+
* Gets a builder to execute the method
133+
* @return the request builder
134+
* @param parameters the parameters for the service method
135+
*/
136+
@Nonnull
137+
public MessageCreateReplyAllRequestBuilder createReplyAll(@Nonnull final MessageCreateReplyAllParameterSet parameters) {
138+
return new MessageCreateReplyAllRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.createReplyAll"), getClient(), null, parameters);
139+
}
140+
141+
/**
142+
* Gets a builder to execute the method
143+
* @return the request builder
144+
* @param parameters the parameters for the service method
145+
*/
146+
@Nonnull
147+
public MessageReplyRequestBuilder reply(@Nonnull final MessageReplyParameterSet parameters) {
148+
return new MessageReplyRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.reply"), getClient(), null, parameters);
149+
}
150+
151+
/**
152+
* Gets a builder to execute the method
153+
* @return the request builder
154+
* @param parameters the parameters for the service method
155+
*/
156+
@Nonnull
157+
public MessageReplyAllRequestBuilder replyAll(@Nonnull final MessageReplyAllParameterSet parameters) {
158+
return new MessageReplyAllRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.replyAll"), getClient(), null, parameters);
159+
}
160+
161+
/**
162+
* Gets a builder to execute the method
163+
* @return the request builder
164+
*/
165+
@Nonnull
166+
public MessageSendRequestBuilder send() {
167+
return new MessageSendRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.send"), getClient(), null);
168+
}
169+
}

src/main/java/com/microsoft/graph/requests/ChatMessageHostedContentRequestBuilder.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,13 @@ public ChatMessageHostedContentRequest buildRequest(@Nonnull final java.util.Lis
5656
}
5757

5858

59+
60+
/**
61+
* Gets a request builder to get the binary value of the object
62+
* @return the stream request builder
63+
*/
64+
@Nonnull
65+
public ChatMessageHostedContentStreamRequestBuilder content() {
66+
return new ChatMessageHostedContentStreamRequestBuilder(getRequestUrlWithAdditionalSegment("$value"), getClient(), null);
67+
}
5968
}
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
// Template Source: BaseStreamRequest.java.tt
2+
// ------------------------------------------------------------------------------
3+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
4+
// ------------------------------------------------------------------------------
5+
6+
package com.microsoft.graph.requests;
7+
8+
import com.microsoft.graph.http.IRequestBuilder;
9+
import com.microsoft.graph.core.ClientException;
10+
import com.microsoft.graph.models.ChatMessageHostedContent;
11+
import java.util.Arrays;
12+
import java.util.EnumSet;
13+
import javax.annotation.Nullable;
14+
import javax.annotation.Nonnull;
15+
import com.microsoft.graph.core.IBaseClient;
16+
import com.microsoft.graph.http.BaseStreamRequest;
17+
18+
import java.io.InputStream;
19+
20+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
21+
22+
/**
23+
* The class for the Chat Message Hosted Content Stream Request.
24+
*/
25+
public class ChatMessageHostedContentStreamRequest extends BaseStreamRequest<ChatMessageHostedContent> {
26+
27+
/**
28+
* The request for the ChatMessageHostedContent
29+
*
30+
* @param requestUrl the request URL
31+
* @param client the service client
32+
* @param requestOptions the options for this request
33+
*/
34+
public ChatMessageHostedContentStreamRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient<?> client, @Nullable final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {
35+
super(requestUrl, client, requestOptions, ChatMessageHostedContent.class);
36+
}
37+
38+
/**
39+
* Gets the contents of this stream
40+
*
41+
* @return a future with the result
42+
*/
43+
@Nonnull
44+
public java.util.concurrent.CompletableFuture<InputStream> getAsync() {
45+
return sendAsync();
46+
}
47+
48+
/**
49+
* Gets the contents of this stream
50+
*
51+
* @return the stream that the caller needs to close
52+
* @throws ClientException an exception occurs if there was an error while the request was sent
53+
*/
54+
@Nullable
55+
public InputStream get() throws ClientException {
56+
return send();
57+
}
58+
59+
/**
60+
* Uploads to the stream
61+
*
62+
* @param fileContents the contents of the stream to upload
63+
* @return a future with the result
64+
*/
65+
@Nonnull
66+
public java.util.concurrent.CompletableFuture<ChatMessageHostedContent> putAsync(@Nonnull final byte[] fileContents) {
67+
return sendAsync(fileContents);
68+
}
69+
70+
/**
71+
* Uploads to the stream
72+
*
73+
* @param fileContents the contents of the stream to upload
74+
* @return the result of the upload
75+
* @throws ClientException an exception occurs if there was an error while the request was sent
76+
*/
77+
@Nullable
78+
public ChatMessageHostedContent put(@Nonnull final byte[] fileContents) throws ClientException {
79+
return send(fileContents);
80+
}
81+
}

0 commit comments

Comments
 (0)