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,21 +93,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume
this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
}
/**
* Read the properties of an azureADDevice object.
* Read the properties and relationships of an updatableAssetGroup object.
* @return a {@link UpdatableAsset}
* @throws ODataError When receiving a 4XX or 5XX status code
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-azureaddevice-get?view=graph-rest-beta">Find more info here</a>
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-updatableassetgroup-get?view=graph-rest-beta">Find more info here</a>
*/
@jakarta.annotation.Nullable
public UpdatableAsset get() {
return get(null);
}
/**
* Read the properties of an azureADDevice object.
* Read the properties and relationships of an updatableAssetGroup object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link UpdatableAsset}
* @throws ODataError When receiving a 4XX or 5XX status code
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-azureaddevice-get?view=graph-rest-beta">Find more info here</a>
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-updatableassetgroup-get?view=graph-rest-beta">Find more info here</a>
*/
@jakarta.annotation.Nullable
public UpdatableAsset get(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
Expand Down Expand Up @@ -162,15 +162,15 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl
return requestInfo;
}
/**
* Read the properties of an azureADDevice object.
* Read the properties and relationships of an updatableAssetGroup object.
* @return a {@link RequestInformation}
*/
@jakarta.annotation.Nonnull
public RequestInformation toGetRequestInformation() {
return toGetRequestInformation(null);
}
/**
* Read the properties of an azureADDevice object.
* Read the properties and relationships of an updatableAssetGroup object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
*/
Expand Down Expand Up @@ -222,7 +222,7 @@ public UpdatableAssetItemRequestBuilder withUrl(@jakarta.annotation.Nonnull fina
public class DeleteRequestConfiguration extends BaseRequestConfiguration {
}
/**
* Read the properties of an azureADDevice object.
* Read the properties and relationships of an updatableAssetGroup object.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class GetQueryParameters implements QueryParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,18 @@ public ComplianceChangeItemRequestBuilder(@jakarta.annotation.Nonnull final Stri
super(requestAdapter, "{+baseurl}/admin/windows/updates/updatePolicies/{updatePolicy%2Did}/complianceChanges/{complianceChange%2Did}{?%24expand,%24select}", rawUrl);
}
/**
* Delete a complianceChange object.
* Delete a contentApproval object.
* @throws ODataError When receiving a 4XX or 5XX status code
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-delete?view=graph-rest-beta">Find more info here</a>
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-delete?view=graph-rest-beta">Find more info here</a>
*/
public void delete() {
delete(null);
}
/**
* Delete a complianceChange object.
* Delete a contentApproval object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @throws ODataError When receiving a 4XX or 5XX status code
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-delete?view=graph-rest-beta">Find more info here</a>
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-delete?view=graph-rest-beta">Find more info here</a>
*/
public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer<DeleteRequestConfiguration> requestConfiguration) {
final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
Expand All @@ -66,21 +66,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume
this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
}
/**
* Read the properties and relationships of a complianceChange object.
* Read the properties and relationships of a contentApproval object.
* @return a {@link ComplianceChange}
* @throws ODataError When receiving a 4XX or 5XX status code
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-get?view=graph-rest-beta">Find more info here</a>
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-get?view=graph-rest-beta">Find more info here</a>
*/
@jakarta.annotation.Nullable
public ComplianceChange get() {
return get(null);
}
/**
* Read the properties and relationships of a complianceChange object.
* Read the properties and relationships of a contentApproval object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link ComplianceChange}
* @throws ODataError When receiving a 4XX or 5XX status code
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-get?view=graph-rest-beta">Find more info here</a>
* @see <a href="https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-get?view=graph-rest-beta">Find more info here</a>
*/
@jakarta.annotation.Nullable
public ComplianceChange get(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
Expand Down Expand Up @@ -117,15 +117,15 @@ public ComplianceChange patch(@jakarta.annotation.Nonnull final ComplianceChange
return this.requestAdapter.send(requestInfo, errorMapping, ComplianceChange::createFromDiscriminatorValue);
}
/**
* Delete a complianceChange object.
* Delete a contentApproval object.
* @return a {@link RequestInformation}
*/
@jakarta.annotation.Nonnull
public RequestInformation toDeleteRequestInformation() {
return toDeleteRequestInformation(null);
}
/**
* Delete a complianceChange object.
* Delete a contentApproval object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
*/
Expand All @@ -137,15 +137,15 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl
return requestInfo;
}
/**
* Read the properties and relationships of a complianceChange object.
* Read the properties and relationships of a contentApproval object.
* @return a {@link RequestInformation}
*/
@jakarta.annotation.Nonnull
public RequestInformation toGetRequestInformation() {
return toGetRequestInformation(null);
}
/**
* Read the properties and relationships of a complianceChange object.
* Read the properties and relationships of a contentApproval object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
*/
Expand Down Expand Up @@ -197,7 +197,7 @@ public ComplianceChangeItemRequestBuilder withUrl(@jakarta.annotation.Nonnull fi
public class DeleteRequestConfiguration extends BaseRequestConfiguration {
}
/**
* Read the properties and relationships of a complianceChange object.
* Read the properties and relationships of a contentApproval object.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class GetQueryParameters implements QueryParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import com.microsoft.graph.beta.chats.item.messages.count.CountRequestBuilder;
import com.microsoft.graph.beta.chats.item.messages.delta.DeltaRequestBuilder;
import com.microsoft.graph.beta.chats.item.messages.forwardtochat.ForwardToChatRequestBuilder;
import com.microsoft.graph.beta.chats.item.messages.item.ChatMessageItemRequestBuilder;
import com.microsoft.graph.beta.chats.item.messages.replywithquote.ReplyWithQuoteRequestBuilder;
import com.microsoft.graph.beta.models.ChatMessage;
import com.microsoft.graph.beta.models.ChatMessageCollectionResponse;
import com.microsoft.graph.beta.models.odataerrors.ODataError;
Expand Down Expand Up @@ -40,6 +42,22 @@ public CountRequestBuilder count() {
public DeltaRequestBuilder delta() {
return new DeltaRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to call the forwardToChat method.
* @return a {@link ForwardToChatRequestBuilder}
*/
@jakarta.annotation.Nonnull
public ForwardToChatRequestBuilder forwardToChat() {
return new ForwardToChatRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to call the replyWithQuote method.
* @return a {@link ReplyWithQuoteRequestBuilder}
*/
@jakarta.annotation.Nonnull
public ReplyWithQuoteRequestBuilder replyWithQuote() {
return new ReplyWithQuoteRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the messages property of the microsoft.graph.chat entity.
* @param chatMessageId The unique identifier of chatMessage
Expand Down Expand Up @@ -93,23 +111,23 @@ public ChatMessageCollectionResponse get(@jakarta.annotation.Nullable final java
return this.requestAdapter.send(requestInfo, errorMapping, ChatMessageCollectionResponse::createFromDiscriminatorValue);
}
/**
* Send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message.
* Send a new chatMessage in the specified channel or a chat.
* @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/chat-post-messages?view=graph-rest-beta">Find more info here</a>
* @see <a href="https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-beta">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 chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message.
* Send a new chatMessage in the specified channel or a chat.
* @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/chat-post-messages?view=graph-rest-beta">Find more info here</a>
* @see <a href="https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-beta">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 +158,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f
return requestInfo;
}
/**
* Send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message.
* Send a new chatMessage in the specified channel or a chat.
* @param body The request body
* @return a {@link RequestInformation}
*/
Expand All @@ -149,7 +167,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f
return toPostRequestInformation(body, null);
}
/**
* Send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message.
* Send a new chatMessage in the specified channel or a chat.
* @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
@@ -0,0 +1,142 @@
package com.microsoft.graph.beta.chats.item.messages.forwardtochat;

import com.microsoft.graph.beta.models.ChatMessage;
import com.microsoft.kiota.serialization.AdditionalDataHolder;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import com.microsoft.kiota.store.BackedModel;
import com.microsoft.kiota.store.BackingStore;
import com.microsoft.kiota.store.BackingStoreFactorySingleton;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class ForwardToChatPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable {
/**
* Stores model information.
*/
@jakarta.annotation.Nonnull
protected BackingStore backingStore;
/**
* Instantiates a new {@link ForwardToChatPostRequestBody} and sets the default values.
*/
public ForwardToChatPostRequestBody() {
this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore();
this.setAdditionalData(new HashMap<>());
}
/**
* 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 ForwardToChatPostRequestBody}
*/
@jakarta.annotation.Nonnull
public static ForwardToChatPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new ForwardToChatPostRequestBody();
}
/**
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
* @return a {@link Map<String, Object>}
*/
@jakarta.annotation.Nonnull
public Map<String, Object> getAdditionalData() {
Map<String, Object> value = this.backingStore.get("additionalData");
if(value == null) {
value = new HashMap<>();
this.setAdditionalData(value);
}
return value;
}
/**
* Gets the additionalMessage property value. The additionalMessage property
* @return a {@link ChatMessage}
*/
@jakarta.annotation.Nullable
public ChatMessage getAdditionalMessage() {
return this.backingStore.get("additionalMessage");
}
/**
* Gets the backingStore property value. Stores model information.
* @return a {@link BackingStore}
*/
@jakarta.annotation.Nonnull
public BackingStore getBackingStore() {
return this.backingStore;
}
/**
* 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>>(3);
deserializerMap.put("additionalMessage", (n) -> { this.setAdditionalMessage(n.getObjectValue(ChatMessage::createFromDiscriminatorValue)); });
deserializerMap.put("messageIds", (n) -> { this.setMessageIds(n.getCollectionOfPrimitiveValues(String.class)); });
deserializerMap.put("targetChatIds", (n) -> { this.setTargetChatIds(n.getCollectionOfPrimitiveValues(String.class)); });
return deserializerMap;
}
/**
* Gets the messageIds property value. The messageIds property
* @return a {@link java.util.List<String>}
*/
@jakarta.annotation.Nullable
public java.util.List<String> getMessageIds() {
return this.backingStore.get("messageIds");
}
/**
* Gets the targetChatIds property value. The targetChatIds property
* @return a {@link java.util.List<String>}
*/
@jakarta.annotation.Nullable
public java.util.List<String> getTargetChatIds() {
return this.backingStore.get("targetChatIds");
}
/**
* 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);
writer.writeObjectValue("additionalMessage", this.getAdditionalMessage());
writer.writeCollectionOfPrimitiveValues("messageIds", this.getMessageIds());
writer.writeCollectionOfPrimitiveValues("targetChatIds", this.getTargetChatIds());
writer.writeAdditionalData(this.getAdditionalData());
}
/**
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
* @param value Value to set for the AdditionalData property.
*/
public void setAdditionalData(@jakarta.annotation.Nullable final Map<String, Object> value) {
this.backingStore.set("additionalData", value);
}
/**
* Sets the additionalMessage property value. The additionalMessage property
* @param value Value to set for the additionalMessage property.
*/
public void setAdditionalMessage(@jakarta.annotation.Nullable final ChatMessage value) {
this.backingStore.set("additionalMessage", value);
}
/**
* Sets the backingStore property value. Stores model information.
* @param value Value to set for the backingStore property.
*/
public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) {
Objects.requireNonNull(value);
this.backingStore = value;
}
/**
* Sets the messageIds property value. The messageIds property
* @param value Value to set for the messageIds property.
*/
public void setMessageIds(@jakarta.annotation.Nullable final java.util.List<String> value) {
this.backingStore.set("messageIds", value);
}
/**
* Sets the targetChatIds property value. The targetChatIds property
* @param value Value to set for the targetChatIds property.
*/
public void setTargetChatIds(@jakarta.annotation.Nullable final java.util.List<String> value) {
this.backingStore.set("targetChatIds", value);
}
}
Loading
Loading