Skip to content

Commit 0f5cc5a

Browse files
authored
Merge pull request #2491 from microsoftgraph/v1.0/pipelinebuild/199559
Generated models and request builders
2 parents 8402692 + 66d3364 commit 0f5cc5a

File tree

148 files changed

+13663
-780
lines changed

Some content is hidden

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

148 files changed

+13663
-780
lines changed

src/main/java/com/microsoft/graph/generated/chats/item/messages/MessagesRequestBuilder.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,23 +93,23 @@ public ChatMessageCollectionResponse get(@jakarta.annotation.Nullable final java
9393
return this.requestAdapter.send(requestInfo, errorMapping, ChatMessageCollectionResponse::createFromDiscriminatorValue);
9494
}
9595
/**
96-
* Send a new chatMessage in the specified channel or a chat.
96+
* Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.
9797
* @param body The request body
9898
* @return a {@link ChatMessage}
9999
* @throws ODataError When receiving a 4XX or 5XX status code
100-
* @see <a href="https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0">Find more info here</a>
100+
* @see <a href="https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0">Find more info here</a>
101101
*/
102102
@jakarta.annotation.Nullable
103103
public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body) {
104104
return post(body, null);
105105
}
106106
/**
107-
* Send a new chatMessage in the specified channel or a chat.
107+
* Send a new chatMessage in the specified chat. This API can&apos;t create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.
108108
* @param body The request body
109109
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
110110
* @return a {@link ChatMessage}
111111
* @throws ODataError When receiving a 4XX or 5XX status code
112-
* @see <a href="https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0">Find more info here</a>
112+
* @see <a href="https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0">Find more info here</a>
113113
*/
114114
@jakarta.annotation.Nullable
115115
public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body, @jakarta.annotation.Nullable final java.util.function.Consumer<PostRequestConfiguration> requestConfiguration) {
@@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f
140140
return requestInfo;
141141
}
142142
/**
143-
* Send a new chatMessage in the specified channel or a chat.
143+
* Send a new chatMessage in the specified chat. This API can&apos;t create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.
144144
* @param body The request body
145145
* @return a {@link RequestInformation}
146146
*/
@@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f
149149
return toPostRequestInformation(body, null);
150150
}
151151
/**
152-
* Send a new chatMessage in the specified channel or a chat.
152+
* Send a new chatMessage in the specified chat. This API can&apos;t create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.
153153
* @param body The request body
154154
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
155155
* @return a {@link RequestInformation}

src/main/java/com/microsoft/graph/generated/communications/CommunicationsRequestBuilder.java

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
import com.microsoft.graph.communications.callrecords.CallRecordsRequestBuilder;
44
import com.microsoft.graph.communications.calls.CallsRequestBuilder;
5+
import com.microsoft.graph.communications.getallonlinemeetingmessages.GetAllOnlineMeetingMessagesRequestBuilder;
56
import com.microsoft.graph.communications.getpresencesbyuserid.GetPresencesByUserIdRequestBuilder;
7+
import com.microsoft.graph.communications.onlinemeetingconversations.OnlineMeetingConversationsRequestBuilder;
68
import com.microsoft.graph.communications.onlinemeetings.OnlineMeetingsRequestBuilder;
79
import com.microsoft.graph.communications.presences.PresencesRequestBuilder;
810
import com.microsoft.graph.models.CloudCommunications;
@@ -41,6 +43,14 @@ public CallRecordsRequestBuilder callRecords() {
4143
public CallsRequestBuilder calls() {
4244
return new CallsRequestBuilder(pathParameters, requestAdapter);
4345
}
46+
/**
47+
* Provides operations to call the getAllOnlineMeetingMessages method.
48+
* @return a {@link GetAllOnlineMeetingMessagesRequestBuilder}
49+
*/
50+
@jakarta.annotation.Nonnull
51+
public GetAllOnlineMeetingMessagesRequestBuilder getAllOnlineMeetingMessages() {
52+
return new GetAllOnlineMeetingMessagesRequestBuilder(pathParameters, requestAdapter);
53+
}
4454
/**
4555
* Provides operations to call the getPresencesByUserId method.
4656
* @return a {@link GetPresencesByUserIdRequestBuilder}
@@ -49,6 +59,14 @@ public CallsRequestBuilder calls() {
4959
public GetPresencesByUserIdRequestBuilder getPresencesByUserId() {
5060
return new GetPresencesByUserIdRequestBuilder(pathParameters, requestAdapter);
5161
}
62+
/**
63+
* Provides operations to manage the onlineMeetingConversations property of the microsoft.graph.cloudCommunications entity.
64+
* @return a {@link OnlineMeetingConversationsRequestBuilder}
65+
*/
66+
@jakarta.annotation.Nonnull
67+
public OnlineMeetingConversationsRequestBuilder onlineMeetingConversations() {
68+
return new OnlineMeetingConversationsRequestBuilder(pathParameters, requestAdapter);
69+
}
5270
/**
5371
* Provides operations to manage the onlineMeetings property of the microsoft.graph.cloudCommunications entity.
5472
* @return a {@link OnlineMeetingsRequestBuilder}
@@ -105,7 +123,7 @@ public CloudCommunications get(@jakarta.annotation.Nullable final java.util.func
105123
}
106124
/**
107125
* Update communications
108-
* @param body The request body
126+
* @param body Represents a container that exposes navigation properties for cloud communications resources.
109127
* @return a {@link CloudCommunications}
110128
* @throws ODataError When receiving a 4XX or 5XX status code
111129
*/
@@ -115,7 +133,7 @@ public CloudCommunications patch(@jakarta.annotation.Nonnull final CloudCommunic
115133
}
116134
/**
117135
* Update communications
118-
* @param body The request body
136+
* @param body Represents a container that exposes navigation properties for cloud communications resources.
119137
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
120138
* @return a {@link CloudCommunications}
121139
* @throws ODataError When receiving a 4XX or 5XX status code
@@ -150,7 +168,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f
150168
}
151169
/**
152170
* Update communications
153-
* @param body The request body
171+
* @param body Represents a container that exposes navigation properties for cloud communications resources.
154172
* @return a {@link RequestInformation}
155173
*/
156174
@jakarta.annotation.Nonnull
@@ -159,7 +177,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull
159177
}
160178
/**
161179
* Update communications
162-
* @param body The request body
180+
* @param body Represents a container that exposes navigation properties for cloud communications resources.
163181
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
164182
* @return a {@link RequestInformation}
165183
*/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
package com.microsoft.graph.communications.getallonlinemeetingmessages;
2+
3+
import com.microsoft.graph.models.BaseCollectionPaginationCountResponse;
4+
import com.microsoft.graph.models.EngagementConversationMessage;
5+
import com.microsoft.kiota.serialization.Parsable;
6+
import com.microsoft.kiota.serialization.ParseNode;
7+
import com.microsoft.kiota.serialization.SerializationWriter;
8+
import java.util.HashMap;
9+
import java.util.Map;
10+
import java.util.Objects;
11+
@jakarta.annotation.Generated("com.microsoft.kiota")
12+
public class GetAllOnlineMeetingMessagesGetResponse extends BaseCollectionPaginationCountResponse implements Parsable {
13+
/**
14+
* Instantiates a new {@link GetAllOnlineMeetingMessagesGetResponse} and sets the default values.
15+
*/
16+
public GetAllOnlineMeetingMessagesGetResponse() {
17+
super();
18+
}
19+
/**
20+
* Creates a new instance of the appropriate class based on discriminator value
21+
* @param parseNode The parse node to use to read the discriminator value and create the object
22+
* @return a {@link GetAllOnlineMeetingMessagesGetResponse}
23+
*/
24+
@jakarta.annotation.Nonnull
25+
public static GetAllOnlineMeetingMessagesGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
26+
Objects.requireNonNull(parseNode);
27+
return new GetAllOnlineMeetingMessagesGetResponse();
28+
}
29+
/**
30+
* The deserialization information for the current model
31+
* @return a {@link Map<String, java.util.function.Consumer<ParseNode>>}
32+
*/
33+
@jakarta.annotation.Nonnull
34+
public Map<String, java.util.function.Consumer<ParseNode>> getFieldDeserializers() {
35+
final HashMap<String, java.util.function.Consumer<ParseNode>> deserializerMap = new HashMap<String, java.util.function.Consumer<ParseNode>>(super.getFieldDeserializers());
36+
deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(EngagementConversationMessage::createFromDiscriminatorValue)); });
37+
return deserializerMap;
38+
}
39+
/**
40+
* Gets the value property value. The value property
41+
* @return a {@link java.util.List<EngagementConversationMessage>}
42+
*/
43+
@jakarta.annotation.Nullable
44+
public java.util.List<EngagementConversationMessage> getValue() {
45+
return this.backingStore.get("value");
46+
}
47+
/**
48+
* Serializes information the current object
49+
* @param writer Serialization writer to use to serialize this model
50+
*/
51+
public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
52+
Objects.requireNonNull(writer);
53+
super.serialize(writer);
54+
writer.writeCollectionOfObjectValues("value", this.getValue());
55+
}
56+
/**
57+
* Sets the value property value. The value property
58+
* @param value Value to set for the value property.
59+
*/
60+
public void setValue(@jakarta.annotation.Nullable final java.util.List<EngagementConversationMessage> value) {
61+
this.backingStore.set("value", value);
62+
}
63+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
package com.microsoft.graph.communications.getallonlinemeetingmessages;
2+
3+
import com.microsoft.graph.models.odataerrors.ODataError;
4+
import com.microsoft.kiota.BaseRequestBuilder;
5+
import com.microsoft.kiota.BaseRequestConfiguration;
6+
import com.microsoft.kiota.HttpMethod;
7+
import com.microsoft.kiota.QueryParameters;
8+
import com.microsoft.kiota.RequestAdapter;
9+
import com.microsoft.kiota.RequestInformation;
10+
import com.microsoft.kiota.RequestOption;
11+
import com.microsoft.kiota.serialization.Parsable;
12+
import com.microsoft.kiota.serialization.ParsableFactory;
13+
import java.util.Collection;
14+
import java.util.HashMap;
15+
import java.util.Map;
16+
import java.util.Objects;
17+
/**
18+
* Provides operations to call the getAllOnlineMeetingMessages method.
19+
*/
20+
@jakarta.annotation.Generated("com.microsoft.kiota")
21+
public class GetAllOnlineMeetingMessagesRequestBuilder extends BaseRequestBuilder {
22+
/**
23+
* Instantiates a new {@link GetAllOnlineMeetingMessagesRequestBuilder} and sets the default values.
24+
* @param pathParameters Path parameters for the request
25+
* @param requestAdapter The request adapter to use to execute the requests.
26+
*/
27+
public GetAllOnlineMeetingMessagesRequestBuilder(@jakarta.annotation.Nonnull final HashMap<String, Object> pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
28+
super(requestAdapter, "{+baseurl}/communications/getAllOnlineMeetingMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters);
29+
}
30+
/**
31+
* Instantiates a new {@link GetAllOnlineMeetingMessagesRequestBuilder} and sets the default values.
32+
* @param rawUrl The raw URL to use for the request builder.
33+
* @param requestAdapter The request adapter to use to execute the requests.
34+
*/
35+
public GetAllOnlineMeetingMessagesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
36+
super(requestAdapter, "{+baseurl}/communications/getAllOnlineMeetingMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl);
37+
}
38+
/**
39+
* Get all Teams question and answer (Q&amp;A) conversation messages in a tenant. This function returns a snapshot of all Q&amp;A activity in JSON format. The export includes:- The original question or discussion text- The user who posted the message- All replies and responders- Vote counts- Moderation status (pending or dismissed)- Private replies- The meeting ID and organizer ID that are used for mapping to meeting metadata.
40+
* @return a {@link GetAllOnlineMeetingMessagesGetResponse}
41+
* @throws ODataError When receiving a 4XX or 5XX status code
42+
* @see <a href="https://learn.microsoft.com/graph/api/cloudcommunications-getallonlinemeetingmessages?view=graph-rest-1.0">Find more info here</a>
43+
*/
44+
@jakarta.annotation.Nullable
45+
public GetAllOnlineMeetingMessagesGetResponse get() {
46+
return get(null);
47+
}
48+
/**
49+
* Get all Teams question and answer (Q&amp;A) conversation messages in a tenant. This function returns a snapshot of all Q&amp;A activity in JSON format. The export includes:- The original question or discussion text- The user who posted the message- All replies and responders- Vote counts- Moderation status (pending or dismissed)- Private replies- The meeting ID and organizer ID that are used for mapping to meeting metadata.
50+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
51+
* @return a {@link GetAllOnlineMeetingMessagesGetResponse}
52+
* @throws ODataError When receiving a 4XX or 5XX status code
53+
* @see <a href="https://learn.microsoft.com/graph/api/cloudcommunications-getallonlinemeetingmessages?view=graph-rest-1.0">Find more info here</a>
54+
*/
55+
@jakarta.annotation.Nullable
56+
public GetAllOnlineMeetingMessagesGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
57+
final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
58+
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
59+
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
60+
return this.requestAdapter.send(requestInfo, errorMapping, GetAllOnlineMeetingMessagesGetResponse::createFromDiscriminatorValue);
61+
}
62+
/**
63+
* Get all Teams question and answer (Q&amp;A) conversation messages in a tenant. This function returns a snapshot of all Q&amp;A activity in JSON format. The export includes:- The original question or discussion text- The user who posted the message- All replies and responders- Vote counts- Moderation status (pending or dismissed)- Private replies- The meeting ID and organizer ID that are used for mapping to meeting metadata.
64+
* @return a {@link RequestInformation}
65+
*/
66+
@jakarta.annotation.Nonnull
67+
public RequestInformation toGetRequestInformation() {
68+
return toGetRequestInformation(null);
69+
}
70+
/**
71+
* Get all Teams question and answer (Q&amp;A) conversation messages in a tenant. This function returns a snapshot of all Q&amp;A activity in JSON format. The export includes:- The original question or discussion text- The user who posted the message- All replies and responders- Vote counts- Moderation status (pending or dismissed)- Private replies- The meeting ID and organizer ID that are used for mapping to meeting metadata.
72+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
73+
* @return a {@link RequestInformation}
74+
*/
75+
@jakarta.annotation.Nonnull
76+
public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
77+
final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
78+
requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
79+
requestInfo.headers.tryAdd("Accept", "application/json");
80+
return requestInfo;
81+
}
82+
/**
83+
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
84+
* @param rawUrl The raw URL to use for the request builder.
85+
* @return a {@link GetAllOnlineMeetingMessagesRequestBuilder}
86+
*/
87+
@jakarta.annotation.Nonnull
88+
public GetAllOnlineMeetingMessagesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
89+
Objects.requireNonNull(rawUrl);
90+
return new GetAllOnlineMeetingMessagesRequestBuilder(rawUrl, requestAdapter);
91+
}
92+
/**
93+
* Get all Teams question and answer (Q&amp;A) conversation messages in a tenant. This function returns a snapshot of all Q&amp;A activity in JSON format. The export includes:- The original question or discussion text- The user who posted the message- All replies and responders- Vote counts- Moderation status (pending or dismissed)- Private replies- The meeting ID and organizer ID that are used for mapping to meeting metadata.
94+
*/
95+
@jakarta.annotation.Generated("com.microsoft.kiota")
96+
public class GetQueryParameters implements QueryParameters {
97+
/**
98+
* Include count of items
99+
*/
100+
@jakarta.annotation.Nullable
101+
public Boolean count;
102+
/**
103+
* Expand related entities
104+
*/
105+
@jakarta.annotation.Nullable
106+
public String[] expand;
107+
/**
108+
* Filter items by property values
109+
*/
110+
@jakarta.annotation.Nullable
111+
public String filter;
112+
/**
113+
* Order items by property values
114+
*/
115+
@jakarta.annotation.Nullable
116+
public String[] orderby;
117+
/**
118+
* Search items by search phrases
119+
*/
120+
@jakarta.annotation.Nullable
121+
public String search;
122+
/**
123+
* Select properties to be returned
124+
*/
125+
@jakarta.annotation.Nullable
126+
public String[] select;
127+
/**
128+
* Skip the first n items
129+
*/
130+
@jakarta.annotation.Nullable
131+
public Integer skip;
132+
/**
133+
* Show only the first n items
134+
*/
135+
@jakarta.annotation.Nullable
136+
public Integer top;
137+
/**
138+
* Extracts the query parameters into a map for the URI template parsing.
139+
* @return a {@link Map<String, Object>}
140+
*/
141+
@jakarta.annotation.Nonnull
142+
public Map<String, Object> toQueryParameters() {
143+
final Map<String, Object> allQueryParams = new HashMap();
144+
allQueryParams.put("%24count", count);
145+
allQueryParams.put("%24filter", filter);
146+
allQueryParams.put("%24search", search);
147+
allQueryParams.put("%24skip", skip);
148+
allQueryParams.put("%24top", top);
149+
allQueryParams.put("%24expand", expand);
150+
allQueryParams.put("%24orderby", orderby);
151+
allQueryParams.put("%24select", select);
152+
return allQueryParams;
153+
}
154+
}
155+
/**
156+
* Configuration for the request such as headers, query parameters, and middleware options.
157+
*/
158+
@jakarta.annotation.Generated("com.microsoft.kiota")
159+
public class GetRequestConfiguration extends BaseRequestConfiguration {
160+
/**
161+
* Request query parameters
162+
*/
163+
@jakarta.annotation.Nullable
164+
public GetQueryParameters queryParameters = new GetQueryParameters();
165+
}
166+
}

0 commit comments

Comments
 (0)