Skip to content
Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -37,29 +37,29 @@ public ArchiveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j
/**
* Archive a list of serviceUpdateMessages for the signed in user.
* @param body The request body
* @return a {@link ArchivePostResponse}
* @return a {@link ArchivepostResponse}
* @throws ODataError When receiving a 4XX or 5XX status code
* @see <a href="https://learn.microsoft.com/graph/api/serviceupdatemessage-archive?view=graph-rest-1.0">Find more info here</a>
*/
@jakarta.annotation.Nullable
public ArchivePostResponse post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body) {
public ArchivepostResponse post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body) {
return post(body, null);
}
/**
* Archive a list of serviceUpdateMessages for the signed in user.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link ArchivePostResponse}
* @return a {@link ArchivepostResponse}
* @throws ODataError When receiving a 4XX or 5XX status code
* @see <a href="https://learn.microsoft.com/graph/api/serviceupdatemessage-archive?view=graph-rest-1.0">Find more info here</a>
*/
@jakarta.annotation.Nullable
public ArchivePostResponse post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer<PostRequestConfiguration> requestConfiguration) {
public ArchivepostResponse post(@jakarta.annotation.Nonnull final ArchivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer<PostRequestConfiguration> requestConfiguration) {
Objects.requireNonNull(body);
final RequestInformation requestInfo = toPostRequestInformation(body, 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, ArchivePostResponse::createFromDiscriminatorValue);
return this.requestAdapter.send(requestInfo, errorMapping, ArchivepostResponse::createFromDiscriminatorValue);
}
/**
* Archive a list of serviceUpdateMessages for the signed in user.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
package com.microsoft.graph.admin.serviceannouncement.messages.archive;

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 ArchivepostResponse implements AdditionalDataHolder, BackedModel, Parsable {
/**
* Stores model information.
*/
@jakarta.annotation.Nonnull
protected BackingStore backingStore;
/**
* Instantiates a new {@link ArchivepostResponse} and sets the default values.
*/
public ArchivepostResponse() {
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 ArchivepostResponse}
*/
@jakarta.annotation.Nonnull
public static ArchivepostResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new ArchivepostResponse();
}
/**
* 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 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>>(1);
deserializerMap.put("value", (n) -> { this.setValue(n.getBooleanValue()); });
return deserializerMap;
}
/**
* Gets the value property value. The value property
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean 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);
writer.writeBooleanValue("value", this.getValue());
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 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 value property value. The value property
* @param value Value to set for the value property.
*/
public void setValue(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("value", value);
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -37,29 +37,29 @@ public FavoriteRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @
/**
* Change the status of a list of serviceUpdateMessages to favorite for the signed in user.
* @param body The request body
* @return a {@link FavoritePostResponse}
* @return a {@link FavoritepostResponse}
* @throws ODataError When receiving a 4XX or 5XX status code
* @see <a href="https://learn.microsoft.com/graph/api/serviceupdatemessage-favorite?view=graph-rest-1.0">Find more info here</a>
*/
@jakarta.annotation.Nullable
public FavoritePostResponse post(@jakarta.annotation.Nonnull final FavoritePostRequestBody body) {
public FavoritepostResponse post(@jakarta.annotation.Nonnull final FavoritePostRequestBody body) {
return post(body, null);
}
/**
* Change the status of a list of serviceUpdateMessages to favorite for the signed in user.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link FavoritePostResponse}
* @return a {@link FavoritepostResponse}
* @throws ODataError When receiving a 4XX or 5XX status code
* @see <a href="https://learn.microsoft.com/graph/api/serviceupdatemessage-favorite?view=graph-rest-1.0">Find more info here</a>
*/
@jakarta.annotation.Nullable
public FavoritePostResponse post(@jakarta.annotation.Nonnull final FavoritePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer<PostRequestConfiguration> requestConfiguration) {
public FavoritepostResponse post(@jakarta.annotation.Nonnull final FavoritePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer<PostRequestConfiguration> requestConfiguration) {
Objects.requireNonNull(body);
final RequestInformation requestInfo = toPostRequestInformation(body, 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, FavoritePostResponse::createFromDiscriminatorValue);
return this.requestAdapter.send(requestInfo, errorMapping, FavoritepostResponse::createFromDiscriminatorValue);
}
/**
* Change the status of a list of serviceUpdateMessages to favorite for the signed in user.
Expand Down
Loading
Loading