Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,23 +93,23 @@ public ChatMessageCollectionResponse get(@jakarta.annotation.Nullable final java
return this.requestAdapter.send(requestInfo, errorMapping, ChatMessageCollectionResponse::createFromDiscriminatorValue);
}
/**
* Send a new chatMessage in the specified channel or a chat.
* 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.
* @param body The request body
* @return a {@link ChatMessage}
* @throws ODataError When receiving a 4XX or 5XX status code
* @see <a href="https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0">Find more info here</a>
* @see <a href="https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0">Find more info here</a>
*/
@jakarta.annotation.Nullable
public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body) {
return post(body, null);
}
/**
* Send a new chatMessage in the specified channel or a chat.
* 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.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link ChatMessage}
* @throws ODataError When receiving a 4XX or 5XX status code
* @see <a href="https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0">Find more info here</a>
* @see <a href="https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0">Find more info here</a>
*/
@jakarta.annotation.Nullable
public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body, @jakarta.annotation.Nullable final java.util.function.Consumer<PostRequestConfiguration> requestConfiguration) {
Expand Down Expand Up @@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f
return requestInfo;
}
/**
* Send a new chatMessage in the specified channel or a chat.
* 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.
* @param body The request body
* @return a {@link RequestInformation}
*/
Expand All @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f
return toPostRequestInformation(body, null);
}
/**
* Send a new chatMessage in the specified channel or a chat.
* 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.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import com.microsoft.graph.communications.callrecords.CallRecordsRequestBuilder;
import com.microsoft.graph.communications.calls.CallsRequestBuilder;
import com.microsoft.graph.communications.getallonlinemeetingmessages.GetAllOnlineMeetingMessagesRequestBuilder;
import com.microsoft.graph.communications.getpresencesbyuserid.GetPresencesByUserIdRequestBuilder;
import com.microsoft.graph.communications.onlinemeetingconversations.OnlineMeetingConversationsRequestBuilder;
import com.microsoft.graph.communications.onlinemeetings.OnlineMeetingsRequestBuilder;
import com.microsoft.graph.communications.presences.PresencesRequestBuilder;
import com.microsoft.graph.models.CloudCommunications;
Expand Down Expand Up @@ -41,6 +43,14 @@ public CallRecordsRequestBuilder callRecords() {
public CallsRequestBuilder calls() {
return new CallsRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to call the getAllOnlineMeetingMessages method.
* @return a {@link GetAllOnlineMeetingMessagesRequestBuilder}
*/
@jakarta.annotation.Nonnull
public GetAllOnlineMeetingMessagesRequestBuilder getAllOnlineMeetingMessages() {
return new GetAllOnlineMeetingMessagesRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to call the getPresencesByUserId method.
* @return a {@link GetPresencesByUserIdRequestBuilder}
Expand All @@ -49,6 +59,14 @@ public CallsRequestBuilder calls() {
public GetPresencesByUserIdRequestBuilder getPresencesByUserId() {
return new GetPresencesByUserIdRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the onlineMeetingConversations property of the microsoft.graph.cloudCommunications entity.
* @return a {@link OnlineMeetingConversationsRequestBuilder}
*/
@jakarta.annotation.Nonnull
public OnlineMeetingConversationsRequestBuilder onlineMeetingConversations() {
return new OnlineMeetingConversationsRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the onlineMeetings property of the microsoft.graph.cloudCommunications entity.
* @return a {@link OnlineMeetingsRequestBuilder}
Expand Down Expand Up @@ -105,7 +123,7 @@ public CloudCommunications get(@jakarta.annotation.Nullable final java.util.func
}
/**
* Update communications
* @param body The request body
* @param body Represents a container that exposes navigation properties for cloud communications resources.
* @return a {@link CloudCommunications}
* @throws ODataError When receiving a 4XX or 5XX status code
*/
Expand All @@ -115,7 +133,7 @@ public CloudCommunications patch(@jakarta.annotation.Nonnull final CloudCommunic
}
/**
* Update communications
* @param body The request body
* @param body Represents a container that exposes navigation properties for cloud communications resources.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link CloudCommunications}
* @throws ODataError When receiving a 4XX or 5XX status code
Expand Down Expand Up @@ -150,7 +168,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f
}
/**
* Update communications
* @param body The request body
* @param body Represents a container that exposes navigation properties for cloud communications resources.
* @return a {@link RequestInformation}
*/
@jakarta.annotation.Nonnull
Expand All @@ -159,7 +177,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull
}
/**
* Update communications
* @param body The request body
* @param body Represents a container that exposes navigation properties for cloud communications resources.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
package com.microsoft.graph.communications.getallonlinemeetingmessages;

import com.microsoft.graph.models.BaseCollectionPaginationCountResponse;
import com.microsoft.graph.models.EngagementConversationMessage;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class GetAllOnlineMeetingMessagesGetResponse extends BaseCollectionPaginationCountResponse implements Parsable {
/**
* Instantiates a new {@link GetAllOnlineMeetingMessagesGetResponse} and sets the default values.
*/
public GetAllOnlineMeetingMessagesGetResponse() {
super();
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @return a {@link GetAllOnlineMeetingMessagesGetResponse}
*/
@jakarta.annotation.Nonnull
public static GetAllOnlineMeetingMessagesGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new GetAllOnlineMeetingMessagesGetResponse();
}
/**
* The deserialization information for the current model
* @return a {@link Map<String, java.util.function.Consumer<ParseNode>>}
*/
@jakarta.annotation.Nonnull
public Map<String, java.util.function.Consumer<ParseNode>> getFieldDeserializers() {
final HashMap<String, java.util.function.Consumer<ParseNode>> deserializerMap = new HashMap<String, java.util.function.Consumer<ParseNode>>(super.getFieldDeserializers());
deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(EngagementConversationMessage::createFromDiscriminatorValue)); });
return deserializerMap;
}
/**
* Gets the value property value. The value property
* @return a {@link java.util.List<EngagementConversationMessage>}
*/
@jakarta.annotation.Nullable
public java.util.List<EngagementConversationMessage> getValue() {
return this.backingStore.get("value");
}
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
Objects.requireNonNull(writer);
super.serialize(writer);
writer.writeCollectionOfObjectValues("value", this.getValue());
}
/**
* Sets the value property value. The value property
* @param value Value to set for the value property.
*/
public void setValue(@jakarta.annotation.Nullable final java.util.List<EngagementConversationMessage> value) {
this.backingStore.set("value", value);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
package com.microsoft.graph.communications.getallonlinemeetingmessages;

import com.microsoft.graph.models.odataerrors.ODataError;
import com.microsoft.kiota.BaseRequestBuilder;
import com.microsoft.kiota.BaseRequestConfiguration;
import com.microsoft.kiota.HttpMethod;
import com.microsoft.kiota.QueryParameters;
import com.microsoft.kiota.RequestAdapter;
import com.microsoft.kiota.RequestInformation;
import com.microsoft.kiota.RequestOption;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParsableFactory;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* Provides operations to call the getAllOnlineMeetingMessages method.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class GetAllOnlineMeetingMessagesRequestBuilder extends BaseRequestBuilder {
/**
* Instantiates a new {@link GetAllOnlineMeetingMessagesRequestBuilder} and sets the default values.
* @param pathParameters Path parameters for the request
* @param requestAdapter The request adapter to use to execute the requests.
*/
public GetAllOnlineMeetingMessagesRequestBuilder(@jakarta.annotation.Nonnull final HashMap<String, Object> pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
super(requestAdapter, "{+baseurl}/communications/getAllOnlineMeetingMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters);
}
/**
* Instantiates a new {@link GetAllOnlineMeetingMessagesRequestBuilder} and sets the default values.
* @param rawUrl The raw URL to use for the request builder.
* @param requestAdapter The request adapter to use to execute the requests.
*/
public GetAllOnlineMeetingMessagesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
super(requestAdapter, "{+baseurl}/communications/getAllOnlineMeetingMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl);
}
/**
* 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.
* @return a {@link GetAllOnlineMeetingMessagesGetResponse}
* @throws ODataError When receiving a 4XX or 5XX status code
* @see <a href="https://learn.microsoft.com/graph/api/cloudcommunications-getallonlinemeetingmessages?view=graph-rest-1.0">Find more info here</a>
*/
@jakarta.annotation.Nullable
public GetAllOnlineMeetingMessagesGetResponse get() {
return get(null);
}
/**
* 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.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link GetAllOnlineMeetingMessagesGetResponse}
* @throws ODataError When receiving a 4XX or 5XX status code
* @see <a href="https://learn.microsoft.com/graph/api/cloudcommunications-getallonlinemeetingmessages?view=graph-rest-1.0">Find more info here</a>
*/
@jakarta.annotation.Nullable
public GetAllOnlineMeetingMessagesGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
return this.requestAdapter.send(requestInfo, errorMapping, GetAllOnlineMeetingMessagesGetResponse::createFromDiscriminatorValue);
}
/**
* 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.
* @return a {@link RequestInformation}
*/
@jakarta.annotation.Nonnull
public RequestInformation toGetRequestInformation() {
return toGetRequestInformation(null);
}
/**
* 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.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
*/
@jakarta.annotation.Nonnull
public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
requestInfo.headers.tryAdd("Accept", "application/json");
return requestInfo;
}
/**
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param rawUrl The raw URL to use for the request builder.
* @return a {@link GetAllOnlineMeetingMessagesRequestBuilder}
*/
@jakarta.annotation.Nonnull
public GetAllOnlineMeetingMessagesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
Objects.requireNonNull(rawUrl);
return new GetAllOnlineMeetingMessagesRequestBuilder(rawUrl, requestAdapter);
}
/**
* 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.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class GetQueryParameters implements QueryParameters {
/**
* Include count of items
*/
@jakarta.annotation.Nullable
public Boolean count;
/**
* Expand related entities
*/
@jakarta.annotation.Nullable
public String[] expand;
/**
* Filter items by property values
*/
@jakarta.annotation.Nullable
public String filter;
/**
* Order items by property values
*/
@jakarta.annotation.Nullable
public String[] orderby;
/**
* Search items by search phrases
*/
@jakarta.annotation.Nullable
public String search;
/**
* Select properties to be returned
*/
@jakarta.annotation.Nullable
public String[] select;
/**
* Skip the first n items
*/
@jakarta.annotation.Nullable
public Integer skip;
/**
* Show only the first n items
*/
@jakarta.annotation.Nullable
public Integer top;
/**
* Extracts the query parameters into a map for the URI template parsing.
* @return a {@link Map<String, Object>}
*/
@jakarta.annotation.Nonnull
public Map<String, Object> toQueryParameters() {
final Map<String, Object> allQueryParams = new HashMap();
allQueryParams.put("%24count", count);
allQueryParams.put("%24filter", filter);
allQueryParams.put("%24search", search);
allQueryParams.put("%24skip", skip);
allQueryParams.put("%24top", top);
allQueryParams.put("%24expand", expand);
allQueryParams.put("%24orderby", orderby);
allQueryParams.put("%24select", select);
return allQueryParams;
}
}
/**
* Configuration for the request such as headers, query parameters, and middleware options.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class GetRequestConfiguration extends BaseRequestConfiguration {
/**
* Request query parameters
*/
@jakarta.annotation.Nullable
public GetQueryParameters queryParameters = new GetQueryParameters();
}
}
Loading
Loading